summaryrefslogtreecommitdiff
path: root/net/omnitty/files/patch-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/omnitty/files/patch-main.c')
-rw-r--r--net/omnitty/files/patch-main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/omnitty/files/patch-main.c b/net/omnitty/files/patch-main.c
new file mode 100644
index 000000000000..b397e4293d93
--- /dev/null
+++ b/net/omnitty/files/patch-main.c
@@ -0,0 +1,16 @@
+--- main.c.orig 2005-10-26 06:08:25.000000000 +0800
++++ main.c 2008-02-17 22:45:29.000000000 +0800
+@@ -335,9 +335,10 @@
+
+ while (!quit) {
+ if (zombie_count) {
+- zombie_count--;
+- chldpid = wait(NULL);
+- machmgr_handle_death(chldpid);
++ if ((chldpid = waitpid(-1, NULL, WNOHANG)) > 0) {
++ zombie_count--;
++ machmgr_handle_death(chldpid);
++ }
+ }
+
+ machmgr_update();