agents: use kill_and_sigcont() where appropriate
This commit is contained in:
parent
78752f2eb4
commit
0adc28ceec
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue