Style fix in sigchld()
This commit is contained in:
parent
890ab510ea
commit
7c24c61ab2
1 changed files with 2 additions and 1 deletions
3
surf.c
3
surf.c
|
@ -259,7 +259,8 @@ sigchld(int unused)
|
|||
{
|
||||
if (signal(SIGCHLD, sigchld) == SIG_ERR)
|
||||
die("Can't install SIGCHLD handler");
|
||||
while (0 < waitpid(-1, NULL, WNOHANG));
|
||||
while (waitpid(-1, NULL, WNOHANG) > 0)
|
||||
;
|
||||
}
|
||||
|
||||
char *
|
||||
|
|
Loading…
Reference in a new issue