Merge pull request #13691 from mrc0mmand/coverity-fixes
Coverity fixes for unchecked return values
This commit is contained in:
+1
-1
@@ -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]);
|
||||
|
||||
@@ -2552,7 +2552,7 @@ static int process_child(sd_event *e) {
|
||||
* benefit in leaving it queued */
|
||||
|
||||
assert(s->child.options & (WSTOPPED|WCONTINUED));
|
||||
waitid(P_PID, s->child.pid, &s->child.siginfo, WNOHANG|(s->child.options & (WSTOPPED|WCONTINUED)));
|
||||
(void) waitid(P_PID, s->child.pid, &s->child.siginfo, WNOHANG|(s->child.options & (WSTOPPED|WCONTINUED)));
|
||||
}
|
||||
|
||||
r = source_set_pending(s, true);
|
||||
|
||||
Reference in New Issue
Block a user