mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
kill: fix error return
This commit is contained in:
parent
c7040b5d1c
commit
b4f052a05a
@ -78,7 +78,7 @@ int bus_kill_context_set_transient_property(
|
||||
return r;
|
||||
|
||||
if (sig <= 0 || sig >= _NSIG)
|
||||
return sd_bus_error_setf(error, "Signal %i out of range", sig);
|
||||
return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Signal %i out of range", sig);
|
||||
|
||||
if (mode != UNIT_CHECK) {
|
||||
c->kill_signal = sig;
|
||||
|
Loading…
x
Reference in New Issue
Block a user