pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
890ab51
)
Style fix in sigchld()
author
Quentin Rameau
<quinq@fifth.space>
Sun, 22 Nov 2015 11:22:23 +0000
(12:22 +0100)
committer
Quentin Rameau
<quinq@fifth.space>
Sun, 22 Nov 2015 11:22:23 +0000
(12:22 +0100)
surf.c
patch
|
blob
|
history
diff --git
a/surf.c
b/surf.c
index
d43535d
..
5043d33
100644
(file)
--- a/
surf.c
+++ b/
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 *