comparison svr-main.c @ 1271:26622eee1e8b

Suspicious use of ;
author Francois Perrad <francois.perrad@gadz.org>
date Fri, 01 Jan 2016 09:03:55 +0100
parents 6d00eca524fe
children d49bda490798
comparison
equal deleted inserted replaced
1270:6d00eca524fe 1271:26622eee1e8b
336 static void sigchld_handler(int UNUSED(unused)) { 336 static void sigchld_handler(int UNUSED(unused)) {
337 struct sigaction sa_chld; 337 struct sigaction sa_chld;
338 338
339 const int saved_errno = errno; 339 const int saved_errno = errno;
340 340
341 while(waitpid(-1, NULL, WNOHANG) > 0); 341 while(waitpid(-1, NULL, WNOHANG) > 0) {}
342 342
343 sa_chld.sa_handler = sigchld_handler; 343 sa_chld.sa_handler = sigchld_handler;
344 sa_chld.sa_flags = SA_NOCLDSTOP; 344 sa_chld.sa_flags = SA_NOCLDSTOP;
345 sigemptyset(&sa_chld.sa_mask); 345 sigemptyset(&sa_chld.sa_mask);
346 if (sigaction(SIGCHLD, &sa_chld, NULL) < 0) { 346 if (sigaction(SIGCHLD, &sa_chld, NULL) < 0) {