diff options
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/syslogd.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index d39cd6a..3e35df1 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); } |