mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-10 13:57:25 +03:00
Fix check for signal in set (#5416)
IN_SET(SIGCONT, SIGKILL) will always evaluate to false. The signal needs to be included as the first argument. Fixup for 26f417d3e8dd2522adfdc4c8fed4c36fa40f48fc.
This commit is contained in:
parent
85266f9bba
commit
a3d8d68cc1
@ -703,7 +703,7 @@ int kill_and_sigcont(pid_t pid, int sig) {
|
||||
|
||||
/* If this worked, also send SIGCONT, unless we already just sent a SIGCONT, or SIGKILL was sent which isn't
|
||||
* affected by a process being suspended anyway. */
|
||||
if (r >= 0 && !IN_SET(SIGCONT, SIGKILL))
|
||||
if (r >= 0 && !IN_SET(sig, SIGCONT, SIGKILL))
|
||||
(void) kill(pid, SIGCONT);
|
||||
|
||||
return r;
|
||||
|
Loading…
x
Reference in New Issue
Block a user