Get vfork_daemon_rexec working under uclinux

This commit is contained in:
Russ Dill
2003-12-15 21:57:44 +00:00
parent d4f7a5edad
commit a1fece2c70
5 changed files with 72 additions and 20 deletions

View File

@@ -200,14 +200,12 @@ crond_main(int ac, char **av)
*/
if (!(opt & 4)) {
#if defined(__uClinux__)
/* reexec for vfork() do continue parent */
vfork_daemon_rexec(1, 0, ac, av, "-f");
#else /* uClinux */
if(daemon(1, 0) < 0) {
bb_perror_msg_and_die("daemon");
}
#if defined(__uClinux__)
else {
/* reexec for vfork() do continue parent */
vfork_daemon_rexec(ac, av, "-f");
}
#endif /* uClinux */
}