From c418d482baf414ef3f08a95ab99da7091f358b89 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 31 May 2006 10:19:51 +0000 Subject: - 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(). --- miscutils/crond.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'miscutils') 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) */ if (!(opt & 4)) { -#if defined(__uClinux__) +#ifdef BB_NOMMU /* reexec for vfork() do continue parent */ vfork_daemon_rexec(1, 0, ac, av, "-f"); -#else /* uClinux */ +#else bb_xdaemon(1, 0); -#endif /* uClinux */ +#endif } (void) startlogger(); /* need if syslog mode selected */ -- cgit v1.2.3