summaryrefslogtreecommitdiff
path: root/miscutils/crond.c
diff options
context:
space:
mode:
authorRuss Dill2003-12-15 21:57:44 +0000
committerRuss Dill2003-12-15 21:57:44 +0000
commita1fece2c70898a1180f0506df6695e3077510731 (patch)
treed18739994a984c3d35edb73c936f015e0dbde631 /miscutils/crond.c
parentd4f7a5edadb7529e407a5367fbb8af4c866e2598 (diff)
downloadbusybox-a1fece2c70898a1180f0506df6695e3077510731.zip
busybox-a1fece2c70898a1180f0506df6695e3077510731.tar.gz
Get vfork_daemon_rexec working under uclinux
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r--miscutils/crond.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 6de00df..81fd72b 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 */
}