diff options
author | des <des@FreeBSD.org> | 1998-10-13 14:52:33 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1998-10-13 14:52:33 +0000 |
commit | 3ca80efd3ae02267b3cd6ee92f92c592e3892a1e (patch) | |
tree | 47aae64b409356a4bf073cd33de8d06645f2ff88 /usr.bin/xargs | |
parent | 528a0157d45bb4f11b9858153bbea5ecb7dafd3a (diff) | |
download | FreeBSD-src-3ca80efd3ae02267b3cd6ee92f92c592e3892a1e.zip FreeBSD-src-3ca80efd3ae02267b3cd6ee92f92c592e3892a1e.tar.gz |
Calls one or more of malloc(), warn(), err(), syslog(), execlp() or
execvp() in the child branch of a vfork(). Changed to use fork()
instead.
Some of these (mv, find, apply, xargs) might benefit greatly from
being rewritten to use vfork() properly.
PR: Loosely related to bin/8252
Approved by: jkh and bde
Diffstat (limited to 'usr.bin/xargs')
-rw-r--r-- | usr.bin/xargs/xargs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c index d5cf527..ec7eea3 100644 --- a/usr.bin/xargs/xargs.c +++ b/usr.bin/xargs/xargs.c @@ -45,7 +45,7 @@ static const char copyright[] = static char sccsid[] = "@(#)xargs.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: xargs.c,v 1.5 1997/08/27 06:26:23 charnier Exp $"; + "$Id: xargs.c,v 1.6 1998/06/17 12:58:43 jkoshy Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -287,9 +287,9 @@ run(argv) (void)fflush(stderr); } noinvoke = 0; - switch(pid = vfork()) { + switch(pid = fork()) { case -1: - err(1, "vfork"); + err(1, "fork"); case 0: execvp(argv[0], argv); warn("%s", argv[0]); |