agents: use kill_and_sigcont() where appropriate

This commit is contained in:
Lennart Poettering 2017-12-22 15:10:56 +01:00
parent 78752f2eb4
commit 0adc28ceec
2 changed files with 2 additions and 5 deletions

View file

@ -57,8 +57,7 @@ void ask_password_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;
}

View 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;
}