summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-08-04 04:29:03 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-08-04 11:33:23 +0200
commitab9af70edb23f2a66e93e2e16f87cd98873885b7 (patch)
tree20ab755c1f086d57417db66cc1c2918f5dd98c50 /src
parentpo: Translated using Weblate (Croatian) (diff)
downloadsystemd-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.
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd/sd-event/sd-event.c2
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];