[BusyBox-cvs] busybox/miscutils crond.c,1.10,1.11

Russ Dill russ at busybox.net
Mon Dec 15 21:57:46 UTC 2003


Update of /var/cvs/busybox/miscutils
In directory nail:/tmp/cvs-serv4184/miscutils

Modified Files:
	crond.c 
Log Message:
Get vfork_daemon_rexec working under uclinux

Index: crond.c
===================================================================
RCS file: /var/cvs/busybox/miscutils/crond.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- crond.c	22 Oct 2003 10:56:45 -0000	1.10
+++ crond.c	15 Dec 2003 21:57:44 -0000	1.11
@@ -200,14 +200,12 @@
      */
 
     if (!(opt & 4)) {
+#if defined(__uClinux__)
+	/* reexec for vfork() do continue parent */
+	vfork_daemon_rexec(1, 0, ac, av, "-f");
+#else /* uClinux */
 	if(daemon(1, 0) < 0) {
 		bb_perror_msg_and_die("daemon");
-	} 
-#if defined(__uClinux__)
-	else {
-	    /* reexec for vfork() do continue parent */
-	    vfork_daemon_rexec(ac, av, "-f");
-	}
 #endif /* uClinux */
     }
 




More information about the busybox-cvs mailing list