syslogd was leaking processes that could forever busyloop. Fixed.
authorEric Andersen <andersen@codepoet.org>
Sun, 20 Aug 2000 06:11:32 +0000 (06:11 -0000)
committerEric Andersen <andersen@codepoet.org>
Sun, 20 Aug 2000 06:11:32 +0000 (06:11 -0000)
 -Erik

sysklogd/syslogd.c
syslogd.c

index dfc933dbf36ee051c7536118a10f64baa1395712..9a77b5f75274b24830cb46ca2abc1e4ccfb92455 100644 (file)
@@ -371,8 +371,11 @@ static void doSyslogd (void)
                                                continue;
                                        }
 
-                                       if (pid == 0)
+                                       if (pid == 0) {
                                                serveConnection (conn);
+                                               close (conn);
+                                               exit( TRUE);
+                                       }
                                        close (conn);
                                }
                        }
index dfc933dbf36ee051c7536118a10f64baa1395712..9a77b5f75274b24830cb46ca2abc1e4ccfb92455 100644 (file)
--- a/syslogd.c
+++ b/syslogd.c
@@ -371,8 +371,11 @@ static void doSyslogd (void)
                                                continue;
                                        }
 
-                                       if (pid == 0)
+                                       if (pid == 0) {
                                                serveConnection (conn);
+                                               close (conn);
+                                               exit( TRUE);
+                                       }
                                        close (conn);
                                }
                        }