summaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorEric Andersen2000-08-20 06:11:32 +0000
committerEric Andersen2000-08-20 06:11:32 +0000
commitb2fc5a06479bb0fcf0f39bea756a5994cbca72b8 (patch)
treefa91582669bc2dfb81219fe65619932cc681bd07 /sysklogd
parente89267c8b38a49dcb8983d4903328a3d079b2b15 (diff)
downloadbusybox-b2fc5a06479bb0fcf0f39bea756a5994cbca72b8.zip
busybox-b2fc5a06479bb0fcf0f39bea756a5994cbca72b8.tar.gz
syslogd was leaking processes that could forever busyloop. Fixed.
-Erik
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/syslogd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index dfc933d..9a77b5f 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);
}
}