Browse Source

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

Eric Andersen 18 years ago
parent
commit
2193796a36
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/ldd.c

+ 1 - 1
utils/ldd.c

@@ -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);