mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-12 08:58:20 +03:00
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) (cherry picked from commit 84f0eda3781f49ff7f3035861b02fe247b89d65e) (cherry picked from commit da81ee2f78526f78b3c57661a59de681d208e35e) (cherry picked from commit 42885ab01726b5937390704f1d6ec33f0321fd53)
This commit is contained in:
parent
e681d161fb
commit
7ac2395b6b
@ -3430,7 +3430,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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user