diff --git a/svr-main.c b/svr-main.c index 1b9f86a143f332827a99cf379ca83079110d2757..9252bb62591a83fbff04f34dbe68232584e4adb0 100644 --- a/svr-main.c +++ b/svr-main.c @@ -338,7 +338,7 @@ static void sigchld_handler(int UNUSED(unused)) { const int saved_errno = errno; - while(waitpid(-1, NULL, WNOHANG) > 0); + while(waitpid(-1, NULL, WNOHANG) > 0) {} sa_chld.sa_handler = sigchld_handler; sa_chld.sa_flags = SA_NOCLDSTOP;