diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-02-18 21:34:17 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-02-18 21:34:17 +0000 |
commit | e272915e1ffd6978ef3555ce4ae1798a9fbcee56 (patch) | |
tree | ab4773383a4ed9ee5ccb52b58f981267e15db6e0 /sysklogd | |
parent | bf5f009862f8dbc6d767c17064380790a047cce1 (diff) |
Some updates for the day,
-Erik
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 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); } |