From b06cd8c58e276a44fbe19f9ed5b1a7a74e5ca4e3 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 17 May 2016 13:27:44 +0200 Subject: [PATCH] uloop: retry waitpid on signal interrupt Signed-off-by: Felix Fietkau --- uloop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uloop.c b/uloop.c index 6ef7210..45f7c5d 100644 --- a/uloop.c +++ b/uloop.c @@ -311,6 +311,9 @@ static void uloop_handle_processes(void) while (1) { pid = waitpid(-1, &ret, WNOHANG); + if (pid < 0 && errno == EINTR) + continue; + if (pid <= 0) return;