diff options
author | 2002-07-31 19:29:20 +0000 | |
---|---|---|
committer | 2002-07-31 19:29:20 +0000 | |
commit | 66a47fdda28de190220046efb35b42dd768edeff (patch) | |
tree | 9dd4b2036af310b236dc7ca8a05234e182891f31 | |
parent | Grammar. (diff) | |
download | wireguard-openbsd-66a47fdda28de190220046efb35b42dd768edeff.tar.xz wireguard-openbsd-66a47fdda28de190220046efb35b42dd768edeff.zip |
use fork, not vfork. seems to fix misterious trapframe trashing on hppa; deraadt@ ok
-rw-r--r-- | usr.bin/make/cmd_exec.c | 4 | ||||
-rw-r--r-- | usr.bin/make/compat.c | 4 | ||||
-rw-r--r-- | usr.bin/make/job.c | 4 |
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) { |