From cd8b25e284a53379539bd0ef2419c3d0007cb34c Mon Sep 17 00:00:00 2001 From: russ Date: Mon, 15 Dec 2003 21:57:44 +0000 Subject: Get vfork_daemon_rexec working under uclinux git-svn-id: svn://busybox.net/trunk/busybox@8087 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- miscutils/crond.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'miscutils/crond.c') diff --git a/miscutils/crond.c b/miscutils/crond.c index 6de00dfde..81fd72b85 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c @@ -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 */ } -- cgit v1.2.3-55-g6feb