chiark / gitweb /
agents: use kill_and_sigcont() where appropriate
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Dec 2017 14:10:56 +0000 (15:10 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:44 +0000 (07:49 +0200)
src/shared/spawn-polkit-agent.c

index c6bd65eb71d63d9cd0662e4db0617cc5668e8d0a..886248b9f97b802671d10d595dd56791f27f426b 100644 (file)
@@ -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;
 }