From: Felix Fietkau Date: Tue, 17 May 2016 11:27:44 +0000 (+0200) Subject: uloop: retry waitpid on signal interrupt X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b06cd8c58e276a44fbe19f9ed5b1a7a74e5ca4e3;p=oweals%2Flibubox.git uloop: retry waitpid on signal interrupt Signed-off-by: Felix Fietkau --- 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;