- patch from Denis Vlasenko to add and use bb_xdaemon()

This commit is contained in:
Bernhard Reutner-Fischer
2006-04-12 18:09:26 +00:00
parent dac7ff15b7
commit 2c99851181
12 changed files with 33 additions and 22 deletions

View File

@ -673,8 +673,7 @@ int syslogd_main(int argc, char **argv)
#if defined(__uClinux__)
vfork_daemon_rexec(0, 1, argc, argv, "-n");
#else /* __uClinux__ */
if(daemon(0, 1) < 0)
bb_perror_msg_and_die("daemon");
bb_xdaemon(0, 1);
#endif /* __uClinux__ */
}
doSyslogd();