sd-event: change error code -EINVAL -> -EIO
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 4 Aug 2024 02:29:03 +0000 (11:29 +0900)
committerLuca Boccassi <bluca@debian.org>
Thu, 15 Aug 2024 12:08:37 +0000 (13:08 +0100)
commit84f0eda3781f49ff7f3035861b02fe247b89d65e
tree3e7da07b90af6174e76d48abfb731fe39666f635
parent7a48ea958bf146a45cb4a3b7ff7aeb5885469196
sd-event: change error code -EINVAL -> -EIO

EINVAL should be used when a function is called with an invalid
argument. Here, the signal is not a function argument.

Follow-up for 7a64c5f23efbb51fe4f1229c1a8aed6dd858a0a9.

(cherry picked from commit ab9af70edb23f2a66e93e2e16f87cd98873885b7)
src/libsystemd/sd-event/sd-event.c