summaryrefslogtreecommitdiff
path: root/sysklogd/syslogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysklogd/syslogd.c')
-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);
}
}