[aadk-commits] qwell: uClinux/trunk r76 - /uClinux/trunk/uClinux-dist/user/busybox/networking/

aadk-commits at lists.digium.com aadk-commits at lists.digium.com
Fri Dec 15 12:06:37 MST 2006


Author: qwell
Date: Fri Dec 15 13:06:37 2006
New Revision: 76

URL: http://svn.digium.com/view/aadk?view=rev&rev=76
Log:
We don't use this (yet), but fork() is bad.  Let's use vfork instead.

Modified:
    uClinux/trunk/uClinux-dist/user/busybox/networking/ifupdown.c

Modified: uClinux/trunk/uClinux-dist/user/busybox/networking/ifupdown.c
URL: http://svn.digium.com/view/aadk/uClinux/trunk/uClinux-dist/user/busybox/networking/ifupdown.c?view=diff&rev=76&r1=75&r2=76
==============================================================================
--- uClinux/trunk/uClinux-dist/user/busybox/networking/ifupdown.c (original)
+++ uClinux/trunk/uClinux-dist/user/busybox/networking/ifupdown.c Fri Dec 15 13:06:37 2006
@@ -1006,7 +1006,7 @@
 		int status;
 
 		fflush(NULL);
-		switch (child = fork()) {
+		switch (child = vfork()) {
 			case -1:		/* failure */
 				return 0;
 			case 0:		/* child */
@@ -1092,7 +1092,7 @@
 	}
 
 	fflush(NULL);
-	switch (pid = fork()) {
+	switch (pid = vfork()) {
 		case -1:			/* failure */
 			close(infd[0]);
 			close(infd[1]);



More information about the aadk-commits mailing list