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:
Yu Watanabe
2024-08-04 11:33:23 +02:00
committed by Luca Boccassi
parent f4911e6bda
commit ab9af70edb
+1 -1
View File
@@ -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];