Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8f04bb3
)
reap children in sigchld handler
author
Andrew Tridgell
<tridge@samba.org>
Tue, 17 Jul 2001 10:48:31 +0000
(10:48 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 17 Jul 2001 10:48:31 +0000
(10:48 +0000)
main.c
patch
|
blob
|
blame
|
history
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[])