summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--svr-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-main.c b/svr-main.c
index 1b9f86a..9252bb6 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;