diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-31 10:19:51 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-31 10:19:51 +0000 |
commit | c418d482baf414ef3f08a95ab99da7091f358b89 (patch) | |
tree | 4bcf7032041b501464f38ff9715f98453bebcbaf /miscutils/crond.c | |
parent | 507cd755a44628ced60acfa568b402cdf2f5547b (diff) | |
download | busybox-w32-c418d482baf414ef3f08a95ab99da7091f358b89.tar.gz busybox-w32-c418d482baf414ef3f08a95ab99da7091f358b89.tar.bz2 busybox-w32-c418d482baf414ef3f08a95ab99da7091f358b89.zip |
- s/defined(__uClinux__)/BB_NOMMU/
This needs a second pass to:
+ add bb_daemon(unsigned char no_chdir, unsigned char no_close, const char*flag)
+ eventually globally export argc and argv, so we don't need to pass it to
bb_daemon().
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r-- | miscutils/crond.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index 030e962f3..954d97965 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -205,12 +205,12 @@ int crond_main(int ac, char **av) | |||
205 | */ | 205 | */ |
206 | 206 | ||
207 | if (!(opt & 4)) { | 207 | if (!(opt & 4)) { |
208 | #if defined(__uClinux__) | 208 | #ifdef BB_NOMMU |
209 | /* reexec for vfork() do continue parent */ | 209 | /* reexec for vfork() do continue parent */ |
210 | vfork_daemon_rexec(1, 0, ac, av, "-f"); | 210 | vfork_daemon_rexec(1, 0, ac, av, "-f"); |
211 | #else /* uClinux */ | 211 | #else |
212 | bb_xdaemon(1, 0); | 212 | bb_xdaemon(1, 0); |
213 | #endif /* uClinux */ | 213 | #endif |
214 | } | 214 | } |
215 | 215 | ||
216 | (void) startlogger(); /* need if syslog mode selected */ | 216 | (void) startlogger(); /* need if syslog mode selected */ |