diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-03 23:55:30 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-03 23:55:30 +0100 |
commit | 430c18ed7f576fd9041b0a02e7c4210bdd020a25 (patch) | |
tree | 0ea2aa6c3d7c434c1c8b5dd2c91ca7b54a7771c4 /src/systemctl.c | |
parent | 2b590e135f53a1bd3e771bdc555f7bf28c4cd232 (diff) |
kill: always send SIGCONT after SIGTERM
When we kill a process to terminate it make sure to send SIGCONT to
ensure it is unpaused and processes the signal.
Diffstat (limited to 'src/systemctl.c')
-rw-r--r-- | src/systemctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemctl.c b/src/systemctl.c index c3f47a1381..2e8d107367 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -5532,6 +5532,7 @@ static void pager_close(void) { /* Inform pager that we are done */ fclose(stdout); + kill(pager_pid, SIGCONT); wait_for_terminate(pager_pid, &dummy); pager_pid = 0; } @@ -5544,6 +5545,7 @@ static void agent_close(void) { /* Inform agent that we are done */ kill(agent_pid, SIGTERM); + kill(agent_pid, SIGCONT); wait_for_terminate(agent_pid, &dummy); agent_pid = 0; } |