diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-08-20 06:11:32 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-08-20 06:11:32 +0000 |
commit | 7487c522d6069b8372373cb111ce58b92a81e2ff (patch) | |
tree | fa91582669bc2dfb81219fe65619932cc681bd07 /syslogd.c | |
parent | 0a9dea8eb1f73e1cf9aee918c0cf1d0f9ae90f44 (diff) | |
download | busybox-w32-7487c522d6069b8372373cb111ce58b92a81e2ff.tar.gz busybox-w32-7487c522d6069b8372373cb111ce58b92a81e2ff.tar.bz2 busybox-w32-7487c522d6069b8372373cb111ce58b92a81e2ff.zip |
syslogd was leaking processes that could forever busyloop. Fixed.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@958 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -371,8 +371,11 @@ static void doSyslogd (void) | |||
371 | continue; | 371 | continue; |
372 | } | 372 | } |
373 | 373 | ||
374 | if (pid == 0) | 374 | if (pid == 0) { |
375 | serveConnection (conn); | 375 | serveConnection (conn); |
376 | close (conn); | ||
377 | exit( TRUE); | ||
378 | } | ||
376 | close (conn); | 379 | close (conn); |
377 | } | 380 | } |
378 | } | 381 | } |