From 9067f13be067f39f6c8586926b190b7dee0def3d Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 24 Mar 2007 12:11:17 +0000 Subject: NOMMU re-exec trick shuld not depend on existence of "don't daemonize" option for every affected applet (and dnsd, for example, don't have one). Thus rework re-exec support to not require it. Code got smaller too. --- miscutils/crond.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'miscutils/crond.c') diff --git a/miscutils/crond.c b/miscutils/crond.c index d237a67..1ab0038 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c @@ -191,8 +191,8 @@ int crond_main(int ac, char **av) if (!(opt & 4)) { #ifdef BB_NOMMU - /* reexec for vfork() do continue parent */ - vfork_daemon_rexec(1, 0, ac, av, "-f"); + if (!re_execed) + vfork_daemon_rexec(1, 0, av); #else xdaemon(1, 0); #endif -- cgit v1.1