From 3ca80efd3ae02267b3cd6ee92f92c592e3892a1e Mon Sep 17 00:00:00 2001 From: des Date: Tue, 13 Oct 1998 14:52:33 +0000 Subject: 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 --- usr.bin/time/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/time') diff --git a/usr.bin/time/time.c b/usr.bin/time/time.c index f74b6db..8d3d8a0 100644 --- a/usr.bin/time/time.c +++ b/usr.bin/time/time.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)time.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: time.c,v 1.10 1998/07/28 10:08:16 des Exp $"; + "$Id: time.c,v 1.11 1998/08/24 10:16:59 cracauer Exp $"; #endif /* not lint */ #include @@ -106,7 +106,7 @@ main(argc, argv) } gettimeofday(&before, (struct timezone *)NULL); - switch(pid = vfork()) { + switch(pid = fork()) { case -1: /* error */ err(1, "time"); /* NOTREACHED */ -- cgit v1.1