[systemd-devel] [PATCH] shared: explicitly ignore the return value of wait_for_terminate
Ronny Chevalier
chevalier.ronny at gmail.com
Sun Nov 9 06:51:04 PST 2014
CID#1237532
CID#1237523
CID#1237522
---
src/shared/pager.c | 2 +-
src/shared/spawn-ask-password-agent.c | 2 +-
src/shared/spawn-polkit-agent.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/shared/pager.c b/src/shared/pager.c
index 5479094..001927c 100644
--- a/src/shared/pager.c
+++ b/src/shared/pager.c
@@ -143,7 +143,7 @@ void pager_close(void) {
/* Inform pager that we are done */
fclose(stdout);
kill(pager_pid, SIGCONT);
- wait_for_terminate(pager_pid, NULL);
+ (void) wait_for_terminate(pager_pid, NULL);
pager_pid = 0;
}
diff --git a/src/shared/spawn-ask-password-agent.c b/src/shared/spawn-ask-password-agent.c
index c1a9c58..ff121f8 100644
--- a/src/shared/spawn-ask-password-agent.c
+++ b/src/shared/spawn-ask-password-agent.c
@@ -62,6 +62,6 @@ void ask_password_agent_close(void) {
/* Inform agent that we are done */
kill(agent_pid, SIGTERM);
kill(agent_pid, SIGCONT);
- wait_for_terminate(agent_pid, NULL);
+ (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 29b01db..7a90ef8 100644
--- a/src/shared/spawn-polkit-agent.c
+++ b/src/shared/spawn-polkit-agent.c
@@ -82,7 +82,7 @@ void polkit_agent_close(void) {
/* Inform agent that we are done */
kill(agent_pid, SIGTERM);
kill(agent_pid, SIGCONT);
- wait_for_terminate(agent_pid, NULL);
+ (void) wait_for_terminate(agent_pid, NULL);
agent_pid = 0;
}
--
2.1.3
More information about the systemd-devel
mailing list