diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-22 15:10:56 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-12-25 11:48:21 +0100 |
commit | 0adc28ceecab2fad2fe74d13d58657dfceddd4c3 (patch) | |
tree | d658322db4b0fbd159858d5fda856c8e67059a15 /src/shared | |
parent | 78752f2eb4abfee3cd09ef96f8e6c745290aa42b (diff) | |
download | systemd-0adc28ceecab2fad2fe74d13d58657dfceddd4c3.tar.gz |
agents: use kill_and_sigcont() where appropriate
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/spawn-ask-password-agent.c | 3 | ||||
-rw-r--r-- | src/shared/spawn-polkit-agent.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/shared/spawn-ask-password-agent.c b/src/shared/spawn-ask-password-agent.c index a99c467db3..17785fd153 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 c6bd65eb71..886248b9f9 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; } |