summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-07-31 19:29:21 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-07-31 19:29:21 +0000
commit0337e413c83ef94ff187cca6d7fac117fa2dbdf9 (patch)
treee89f9b48b76e06224b202ea2546c84acf6b88047 /usr.bin
parent9fed39ad8b8ac256f2fcd3def5790b6d4f565532 (diff)
use fork, not vfork. seems to fix misterious trapframe trashing on hppa; deraadt@ ok
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/make/cmd_exec.c4
-rw-r--r--usr.bin/make/compat.c4
-rw-r--r--usr.bin/make/job.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/make/cmd_exec.c b/usr.bin/make/cmd_exec.c
index 7d27c330468..9775cc5f696 100644
--- a/usr.bin/make/cmd_exec.c
+++ b/usr.bin/make/cmd_exec.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: cmd_exec.c,v 1.1 2001/05/23 12:34:40 espie Exp $ */
+/* $OpenBSD: cmd_exec.c,v 1.2 2002/07/31 19:29:20 mickey Exp $ */
/*
* Copyright (c) 2001 Marc Espie.
*
@@ -69,7 +69,7 @@ Cmd_Exec(cmd, err)
}
/* Fork */
- switch (cpid = vfork()) {
+ switch (cpid = fork()) {
case 0:
/* Close input side of pipe */
(void)close(fds[0]);
diff --git a/usr.bin/make/compat.c b/usr.bin/make/compat.c
index 922762638ba..c0aba643bc2 100644
--- a/usr.bin/make/compat.c
+++ b/usr.bin/make/compat.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: compat.c,v 1.47 2002/06/12 06:07:15 mpech Exp $ */
+/* $OpenBSD: compat.c,v 1.48 2002/07/31 19:29:20 mickey Exp $ */
/* $NetBSD: compat.c,v 1.14 1996/11/06 17:59:01 christos Exp $ */
/*
@@ -283,7 +283,7 @@ CompatRunCommand(cmdp, gnp)
local = true;
/* Fork and execute the single command. If the fork fails, we abort. */
- cpid = vfork();
+ cpid = fork();
if (cpid == -1)
Fatal("Could not fork");
if (cpid == 0) {
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c
index 17116189f45..f4cfe483d05 100644
--- a/usr.bin/make/job.c
+++ b/usr.bin/make/job.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: job.c,v 1.51 2002/06/12 06:07:16 mpech Exp $ */
+/* $OpenBSD: job.c,v 1.52 2002/07/31 19:29:20 mickey Exp $ */
/* $NetBSD: job.c,v 1.16 1996/11/06 17:59:08 christos Exp $ */
/*
@@ -1219,7 +1219,7 @@ JobExec(job, argv)
lastNode = job->node;
}
- if ((cpid = vfork()) == -1) {
+ if ((cpid = fork()) == -1) {
Punt("Cannot fork");
} else if (cpid == 0) {