mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 21:51:37 +00:00
shared: explicitly ignore the return value of wait_for_terminate
CID#1237532 CID#1237523 CID#1237522
This commit is contained in:
committed by
Lennart Poettering
parent
39f76ad8d6
commit
c73d180dc4
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user