summaryrefslogtreecommitdiff
path: root/syslogd.c
diff options
context:
space:
mode:
authorErik Andersen2000-02-18 21:34:17 +0000
committerErik Andersen2000-02-18 21:34:17 +0000
commite272915e1ffd6978ef3555ce4ae1798a9fbcee56 (patch)
treeab4773383a4ed9ee5ccb52b58f981267e15db6e0 /syslogd.c
parentbf5f009862f8dbc6d767c17064380790a047cce1 (diff)
downloadbusybox-e272915e1ffd6978ef3555ce4ae1798a9fbcee56.zip
busybox-e272915e1ffd6978ef3555ce4ae1798a9fbcee56.tar.gz
Some updates for the day,
-Erik
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/syslogd.c b/syslogd.c
index d39cd6a..3e35df1 100644
--- a/syslogd.c
+++ b/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);
}