diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-22 15:10:56 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-12-25 11:48:21 +0100 |
commit | 0adc28ceecab2fad2fe74d13d58657dfceddd4c3 (patch) | |
tree | d658322db4b0fbd159858d5fda856c8e67059a15 /src/shared/spawn-polkit-agent.c | |
parent | process-util: move fork_agent() to process-util.[ch] (diff) | |
download | systemd-0adc28ceecab2fad2fe74d13d58657dfceddd4c3.tar.xz systemd-0adc28ceecab2fad2fe74d13d58657dfceddd4c3.zip |
agents: use kill_and_sigcont() where appropriate
Diffstat (limited to 'src/shared/spawn-polkit-agent.c')
-rw-r--r-- | src/shared/spawn-polkit-agent.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/shared/spawn-polkit-agent.c b/src/shared/spawn-polkit-agent.c index c6bd65eb71..886248b9f9 100644 --- a/src/shared/spawn-polkit-agent.c +++ b/src/shared/spawn-polkit-agent.c @@ -83,9 +83,7 @@ void polkit_agent_close(void) { return; /* Inform agent that we are done */ - (void) kill(agent_pid, SIGTERM); - (void) kill(agent_pid, SIGCONT); - + (void) kill_and_sigcont(agent_pid, SIGTERM); (void) wait_for_terminate(agent_pid, NULL); agent_pid = 0; } |