aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crond.c
diff options
context:
space:
mode:
authorruss <russ@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-12-15 21:57:44 +0000
committerruss <russ@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-12-15 21:57:44 +0000
commitcd8b25e284a53379539bd0ef2419c3d0007cb34c (patch)
treed18739994a984c3d35edb73c936f015e0dbde631 /miscutils/crond.c
parent56e874c57638994a7ec56d08b41986f5c1a67f2d (diff)
downloadbusybox-w32-cd8b25e284a53379539bd0ef2419c3d0007cb34c.tar.gz
busybox-w32-cd8b25e284a53379539bd0ef2419c3d0007cb34c.tar.bz2
busybox-w32-cd8b25e284a53379539bd0ef2419c3d0007cb34c.zip
Get vfork_daemon_rexec working under uclinux
git-svn-id: svn://busybox.net/trunk/busybox@8087 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 6de00dfde..81fd72b85 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -200,14 +200,12 @@ crond_main(int ac, char **av)
200 */ 200 */
201 201
202 if (!(opt & 4)) { 202 if (!(opt & 4)) {
203#if defined(__uClinux__)
204 /* reexec for vfork() do continue parent */
205 vfork_daemon_rexec(1, 0, ac, av, "-f");
206#else /* uClinux */
203 if(daemon(1, 0) < 0) { 207 if(daemon(1, 0) < 0) {
204 bb_perror_msg_and_die("daemon"); 208 bb_perror_msg_and_die("daemon");
205 }
206#if defined(__uClinux__)
207 else {
208 /* reexec for vfork() do continue parent */
209 vfork_daemon_rexec(ac, av, "-f");
210 }
211#endif /* uClinux */ 209#endif /* uClinux */
212 } 210 }
213 211