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 7a64c5f23e.
This commit is contained in:
committed by
Luca Boccassi
parent
f4911e6bda
commit
ab9af70edb
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user