]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
execute: explicitly ignore fd_wait_for_event()'s return value 13691/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 1 Oct 2019 08:25:36 +0000 (10:25 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 1 Oct 2019 08:25:36 +0000 (10:25 +0200)
Fixes CID#1402316

src/core/execute.c

index ec95ce3d1049a613913cae6a2737e335b647df99..54775e9dfa047193f42450d9f408a7208583c1e1 100644 (file)
@@ -1621,7 +1621,7 @@ static void do_idle_pipe_dance(int idle_pipe[static 4]) {
                         n = write(idle_pipe[3], "x", 1);
                         if (n > 0)
                                 /* Wait for systemd to react to the signal above. */
-                                fd_wait_for_event(idle_pipe[0], POLLHUP, IDLE_TIMEOUT2_USEC);
+                                (void) fd_wait_for_event(idle_pipe[0], POLLHUP, IDLE_TIMEOUT2_USEC);
                 }
 
                 idle_pipe[0] = safe_close(idle_pipe[0]);