From: Eric Andersen Date: Sun, 20 Aug 2000 06:11:32 +0000 (-0000) Subject: syslogd was leaking processes that could forever busyloop. Fixed. X-Git-Tag: 0_47~161 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b2fc5a06479bb0fcf0f39bea756a5994cbca72b8;p=oweals%2Fbusybox.git syslogd was leaking processes that could forever busyloop. Fixed. -Erik --- diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index dfc933dbf..9a77b5f75 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/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); } } diff --git a/syslogd.c b/syslogd.c index dfc933dbf..9a77b5f75 100644 --- 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); } }