From a5d27871f7ed059321a1bb05a16cc8117e4bfe69 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Tue, 1 Oct 2019 10:14:10 +0200 Subject: [PATCH] sd-event: explicitly ignore waitipid()'s return value Fixes CID#1393252 --- src/libsystemd/sd-event/sd-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c index 5adbcee..ee10728 100644 --- a/src/libsystemd/sd-event/sd-event.c +++ b/src/libsystemd/sd-event/sd-event.c @@ -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); -- 2.7.4