From e272915e1ffd6978ef3555ce4ae1798a9fbcee56 Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Fri, 18 Feb 2000 21:34:17 +0000 Subject: Some updates for the day, -Erik --- sysklogd/syslogd.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'sysklogd') diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index d39cd6a0d..3e35df15d 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -365,6 +365,17 @@ extern int syslogd_main(int argc, char **argv) *p++ = '\0'; } +#ifdef BB_KLOGD + /* Start up the klogd process */ + if (startKlogd == TRUE) { + klogd_pid = fork(); + if (klogd_pid == 0) { + strncpy(argv[0], "klogd", strlen(argv[0])); + doKlogd(); + } + } +#endif + if (doFork == TRUE) { pid = fork(); if (pid < 0) @@ -377,16 +388,5 @@ extern int syslogd_main(int argc, char **argv) doSyslogd(); } -#ifdef BB_KLOGD - /* Start up the klogd process */ - if (startKlogd == TRUE) { - klogd_pid = fork(); - if (klogd_pid == 0) { - strncpy(argv[0], "klogd", strlen(argv[0])); - doKlogd(); - } - } -#endif - exit(TRUE); } -- cgit v1.2.3