diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-08-04 04:29:03 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-08-04 11:33:23 +0200 |
commit | ab9af70edb23f2a66e93e2e16f87cd98873885b7 (patch) | |
tree | 20ab755c1f086d57417db66cc1c2918f5dd98c50 | |
parent | po: Translated using Weblate (Croatian) (diff) | |
download | systemd-ab9af70edb23f2a66e93e2e16f87cd98873885b7.tar.xz systemd-ab9af70edb23f2a66e93e2e16f87cd98873885b7.zip |
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.
-rw-r--r-- | src/libsystemd/sd-event/sd-event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c index a593d0e50d..77d2c116db 100644 --- a/src/libsystemd/sd-event/sd-event.c +++ b/src/libsystemd/sd-event/sd-event.c @@ -3872,7 +3872,7 @@ static int process_signal(sd_event *e, struct signal_data *d, uint32_t events, i return -EIO; if (_unlikely_(!SIGNAL_VALID(si.ssi_signo))) - return -EINVAL; + return -EIO; if (e->signal_sources) s = e->signal_sources[si.ssi_signo]; |