summaryrefslogtreecommitdiffstats
path: root/usr.bin/newkey/update.c
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/newkey/update.c
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/newkey/update.c')
-rw-r--r--usr.bin/newkey/update.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/newkey/update.c b/usr.bin/newkey/update.c
index 1c33bcb..609977a 100644
--- a/usr.bin/newkey/update.c
+++ b/usr.bin/newkey/update.c
@@ -32,7 +32,7 @@
static char sccsid[] = "@(#)update.c 1.2 91/03/11 Copyr 1986 Sun Micro";
#endif
static const char rcsid[] =
- "$Id: update.c,v 1.2 1997/07/29 06:54:16 charnier Exp $";
+ "$Id: update.c,v 1.3 1998/02/20 04:38:20 jb Exp $";
#endif
/*
@@ -167,11 +167,7 @@ _openchild(command, fto, ffrom)
if (pipe(pdfrom) < 0) {
goto error2;
}
-#ifdef VFORK
- switch (pid = vfork()) {
-#else
switch (pid = fork()) {
-#endif
case -1:
goto error3;
OpenPOWER on IntegriCloud