syslogd was leaking processes that could forever busyloop. Fixed.

-Erik
This commit is contained in:
Eric Andersen 2000-08-20 06:11:32 +00:00
parent e89267c8b3
commit b2fc5a0647
2 changed files with 8 additions and 2 deletions

View File

@ -371,8 +371,11 @@ static void doSyslogd (void)
continue; continue;
} }
if (pid == 0) if (pid == 0) {
serveConnection (conn); serveConnection (conn);
close (conn);
exit( TRUE);
}
close (conn); close (conn);
} }
} }

View File

@ -371,8 +371,11 @@ static void doSyslogd (void)
continue; continue;
} }
if (pid == 0) if (pid == 0) {
serveConnection (conn); serveConnection (conn);
close (conn);
exit( TRUE);
}
close (conn); close (conn);
} }
} }