chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c99d561
)
agents: use kill_and_sigcont() where appropriate
author
Lennart Poettering
<lennart@poettering.net>
Fri, 22 Dec 2017 14:10:56 +0000
(15:10 +0100)
committer
Sven Eden
<yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:44 +0000
(07:49 +0200)
src/shared/spawn-polkit-agent.c
patch
|
blob
|
history
diff --git
a/src/shared/spawn-polkit-agent.c
b/src/shared/spawn-polkit-agent.c
index c6bd65eb71d63d9cd0662e4db0617cc5668e8d0a..886248b9f97b802671d10d595dd56791f27f426b 100644
(file)
--- 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;
}