summaryrefslogtreecommitdiffstats
path: root/usr.bin/apply
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1998-10-13 14:52:33 +0000
committerdes <des@FreeBSD.org>1998-10-13 14:52:33 +0000
commit3ca80efd3ae02267b3cd6ee92f92c592e3892a1e (patch)
tree47aae64b409356a4bf073cd33de8d06645f2ff88 /usr.bin/apply
parent528a0157d45bb4f11b9858153bbea5ecb7dafd3a (diff)
downloadFreeBSD-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/apply')
-rw-r--r--usr.bin/apply/apply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/apply/apply.c b/usr.bin/apply/apply.c
index 78e9062..37a77b7 100644
--- a/usr.bin/apply/apply.c
+++ b/usr.bin/apply/apply.c
@@ -207,7 +207,7 @@ system(command)
return(1);
omask = sigblock(sigmask(SIGCHLD));
- switch(pid = vfork()) {
+ switch(pid = fork()) {
case -1: /* error */
err(1, "fork");
case 0: /* child */
OpenPOWER on IntegriCloud