From: Lennart Poettering Date: Fri, 22 Dec 2017 14:10:56 +0000 (+0100) Subject: agents: use kill_and_sigcont() where appropriate X-Git-Tag: v237~173^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0adc28ceecab2fad2fe74d13d58657dfceddd4c3;p=platform%2Fupstream%2Fsystemd.git agents: use kill_and_sigcont() where appropriate --- diff --git a/src/shared/spawn-ask-password-agent.c b/src/shared/spawn-ask-password-agent.c index a99c467..17785fd 100644 --- a/src/shared/spawn-ask-password-agent.c +++ b/src/shared/spawn-ask-password-agent.c @@ -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; } diff --git a/src/shared/spawn-polkit-agent.c b/src/shared/spawn-polkit-agent.c index c6bd65e..886248b 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; }