summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2016-01-01 09:03:55 +0100
committerMatt Johnston <matt@ucc.asn.au>2016-03-16 22:41:19 +0800
commita5e5bab74b17ed85c0b61efb564f13120b8123b7 (patch)
tree4c43113ba26fdfbda66cd9bbb54e5a46bee5f3ba
parent8f96b8908ec21bed35ae3a3109b94adbfffaf289 (diff)
Suspicious use of ;
-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;