From: Ronny Chevalier Date: Sun, 9 Nov 2014 14:51:04 +0000 (+0100) Subject: shared: explicitly ignore the return value of wait_for_terminate X-Git-Tag: v218~476 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=c73d180dc4bbd87c945a524b42b672af2ffe2609 shared: explicitly ignore the return value of wait_for_terminate CID#1237532 CID#1237523 CID#1237522 --- diff --git a/src/shared/pager.c b/src/shared/pager.c index 54790947b..001927ce9 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 c1a9c5868..ff121f86a 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 29b01db19..7a90ef801 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; }