summaryrefslogtreecommitdiffstats
path: root/src/shared/spawn-polkit-agent.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-22 15:10:56 +0100
committerLennart Poettering <lennart@poettering.net>2017-12-25 11:48:21 +0100
commit0adc28ceecab2fad2fe74d13d58657dfceddd4c3 (patch)
treed658322db4b0fbd159858d5fda856c8e67059a15 /src/shared/spawn-polkit-agent.c
parentprocess-util: move fork_agent() to process-util.[ch] (diff)
downloadsystemd-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.c4
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;
}