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/vacation/vacation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/vacation') diff --git a/usr.bin/vacation/vacation.c b/usr.bin/vacation/vacation.c index 6ea8c28..8790163 100644 --- a/usr.bin/vacation/vacation.c +++ b/usr.bin/vacation/vacation.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)from: vacation.c 8.2 (Berkeley) 1/26/94"; #endif static const char rcsid[] = - "$Id$"; + "$Id: vacation.c,v 1.12 1997/11/03 07:51:05 charnier Exp $"; #endif /* not lint */ /* @@ -417,7 +417,7 @@ sendmessage(myname) syslog(LOG_ERR, "vacation: pipe: %s", strerror(errno)); exit(1); } - i = vfork(); + i = fork(); if (i < 0) { syslog(LOG_ERR, "vacation: fork: %s", strerror(errno)); exit(1); -- cgit v1.1