Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
reap children in sigchld handler
[rsync/rsync.git]
/
main.c
diff --git
a/main.c
b/main.c
index
38df5a0
..
4ecf46d
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-700,6
+700,9
@@
static RETSIGTYPE sigusr2_handler(int val) {
}
static RETSIGTYPE sigchld_handler(int val) {
+#ifdef WNOHANG
+ while (waitpid(-1, NULL, WNOHANG) > 0) ;
+#endif
}
int main(int argc,char *argv[])