aboutsummaryrefslogtreecommitdiff
path: root/miscutils/crond.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-12 18:09:26 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-12 18:09:26 +0000
commit2c99851181a652358aa3ca58ef38c57e46ae02e4 (patch)
tree6893f7992748817b64ec66947adc2ca40e13fb8e /miscutils/crond.c
parentdac7ff15b7d32deeeef3d9665744fc5774c21d70 (diff)
downloadbusybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.tar.gz
busybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.tar.bz2
busybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.zip
- patch from Denis Vlasenko to add and use bb_xdaemon()
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r--miscutils/crond.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 7e50b61c7..06b8769fa 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -1,3 +1,4 @@
1/* vi: set sw=4 ts=4: */
1/* 2/*
2 * crond -d[#] -c <crondir> -f -b 3 * crond -d[#] -c <crondir> -f -b
3 * 4 *
@@ -213,9 +214,7 @@ int crond_main(int ac, char **av)
213 /* reexec for vfork() do continue parent */ 214 /* reexec for vfork() do continue parent */
214 vfork_daemon_rexec(1, 0, ac, av, "-f"); 215 vfork_daemon_rexec(1, 0, ac, av, "-f");
215#else /* uClinux */ 216#else /* uClinux */
216 if (daemon(1, 0) < 0) { 217 bb_xdaemon(1, 0);
217 bb_perror_msg_and_die("daemon");
218 }
219#endif /* uClinux */ 218#endif /* uClinux */
220 } 219 }
221 220