Vodz, last patch 104

This commit is contained in:
Glenn L McGrath 2003-08-29 07:35:08 +00:00
parent 7b8765c808
commit dc72f3ace2

View File

@ -574,9 +574,7 @@ extern int syslogd_main(int argc, char **argv)
{ {
int opt; int opt;
#if ! defined(__uClinux__)
int doFork = TRUE; int doFork = TRUE;
#endif
char *p; char *p;
@ -586,11 +584,9 @@ extern int syslogd_main(int argc, char **argv)
case 'm': case 'm':
MarkInterval = atoi(optarg) * 60; MarkInterval = atoi(optarg) * 60;
break; break;
#if ! defined(__uClinux__)
case 'n': case 'n':
doFork = FALSE; doFork = FALSE;
break; break;
#endif
case 'O': case 'O':
logFilePath = bb_xstrdup(optarg); logFilePath = bb_xstrdup(optarg);
break; break;
@ -634,7 +630,7 @@ extern int syslogd_main(int argc, char **argv)
if ((doFork == TRUE) && (daemon(0, 1) < 0)) { if ((doFork == TRUE) && (daemon(0, 1) < 0)) {
bb_perror_msg_and_die("daemon"); bb_perror_msg_and_die("daemon");
#if ! defined(__uClinux__) #if defined(__uClinux__)
vfork_daemon_rexec(argc, argv, "-n"); vfork_daemon_rexec(argc, argv, "-n");
#endif #endif
} }