summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-22 15:10:56 +0100
committerSven Eden <yamakuzure@gmx.net>2018-05-30 07:49:44 +0200
commit2b522f73623705a9b5d1c0223e18667e58fc640f (patch)
treec2a8b3ddd5743311c8921bdfb70e834023675fbb /src
parentc99d561e23c06c521951ead4ef7c06747fea7dce (diff)
agents: use kill_and_sigcont() where appropriate
Diffstat (limited to 'src')
-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 c6bd65eb7..886248b9f 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;
}