OSDN Git Service

ldd does not build due to missing fork() on MMUless. Since ldd merely
authorEric Andersen <andersen@codepoet.org>
Wed, 5 Oct 2005 21:44:56 +0000 (21:44 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 5 Oct 2005 21:44:56 +0000 (21:44 -0000)
does a fork/exec, fork() can be trivially replaced with vfork()

utils/ldd.c

index 5145180..a857127 100644 (file)
@@ -727,7 +727,7 @@ foo:
                                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);