summaryrefslogtreecommitdiff
path: root/sysklogd/syslogd.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-05-31 10:19:51 +0000
committerBernhard Reutner-Fischer2006-05-31 10:19:51 +0000
commitc418d482baf414ef3f08a95ab99da7091f358b89 (patch)
tree4bcf7032041b501464f38ff9715f98453bebcbaf /sysklogd/syslogd.c
parent507cd755a44628ced60acfa568b402cdf2f5547b (diff)
downloadbusybox-c418d482baf414ef3f08a95ab99da7091f358b89.zip
busybox-c418d482baf414ef3f08a95ab99da7091f358b89.tar.gz
- s/defined(__uClinux__)/BB_NOMMU/
This needs a second pass to: + add bb_daemon(unsigned char no_chdir, unsigned char no_close, const char*flag) + eventually globally export argc and argv, so we don't need to pass it to bb_daemon().
Diffstat (limited to 'sysklogd/syslogd.c')
-rw-r--r--sysklogd/syslogd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index deaee49..2e2681b 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -670,11 +670,11 @@ int syslogd_main(int argc, char **argv)
umask(0);
if (doFork == TRUE) {
-#if defined(__uClinux__)
+#ifdef BB_NOMMU
vfork_daemon_rexec(0, 1, argc, argv, "-n");
-#else /* __uClinux__ */
+#else
bb_xdaemon(0, 1);
-#endif /* __uClinux__ */
+#endif
}
doSyslogd();