summaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorGlenn L McGrath2003-08-29 07:35:08 +0000
committerGlenn L McGrath2003-08-29 07:35:08 +0000
commitdc72f3ace2575f6ee2c0ee8662aa0373265d4883 (patch)
tree33f01e1e2dc0a7327c5f23b936b7ac9aee413d60 /sysklogd
parent7b8765c808641d74edd1f0a4f22c092ea21421fa (diff)
downloadbusybox-dc72f3ace2575f6ee2c0ee8662aa0373265d4883.zip
busybox-dc72f3ace2575f6ee2c0ee8662aa0373265d4883.tar.gz
Vodz, last patch 104
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/syslogd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index c554536..ca6aee3 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -574,9 +574,7 @@ extern int syslogd_main(int argc, char **argv)
{
int opt;
-#if ! defined(__uClinux__)
int doFork = TRUE;
-#endif
char *p;
@@ -586,11 +584,9 @@ extern int syslogd_main(int argc, char **argv)
case 'm':
MarkInterval = atoi(optarg) * 60;
break;
-#if ! defined(__uClinux__)
case 'n':
doFork = FALSE;
break;
-#endif
case 'O':
logFilePath = bb_xstrdup(optarg);
break;
@@ -634,7 +630,7 @@ extern int syslogd_main(int argc, char **argv)
if ((doFork == TRUE) && (daemon(0, 1) < 0)) {
bb_perror_msg_and_die("daemon");
-#if ! defined(__uClinux__)
+#if defined(__uClinux__)
vfork_daemon_rexec(argc, argv, "-n");
#endif
}