svn commit: trunk/uClibc/utils

andersen at uclibc.org andersen at uclibc.org
Wed Oct 5 21:44:58 UTC 2005


Author: andersen
Date: 2005-10-05 14:44:56 -0700 (Wed, 05 Oct 2005)
New Revision: 11775

Log:
ldd does not build due to missing fork() on MMUless.  Since ldd merely
does a fork/exec, fork() can be trivially replaced with vfork()


Modified:
   trunk/uClibc/utils/ldd.c


Changeset:
Modified: trunk/uClibc/utils/ldd.c
===================================================================
--- trunk/uClibc/utils/ldd.c	2005-10-05 14:52:21 UTC (rev 11774)
+++ trunk/uClibc/utils/ldd.c	2005-10-05 21:44:56 UTC (rev 11775)
@@ -727,7 +727,7 @@
 				NULL
 			};
 
-			if ((pid = fork()) == 0) {
+			if ((pid = vfork()) == 0) {
 				/* Cool, it looks like we should be able to actually
 				 * run this puppy.  Do so now... */
 				execle(filename, filename, NULL, environment);




More information about the uClibc-cvs mailing list