Replace vfork() by fork(), vfork() usage is totally bogus in this context.
This program don't bother to do even minimal vfork() support as per vfork(2) manpage required.
This commit is contained in:
parent
0eaa559cbf
commit
97779a7e37
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25117
@ -40,7 +40,7 @@ static char copyright[] =
|
||||
#ifndef lint
|
||||
static char sccsid[] = "From: @(#)vacation.c 8.2 (Berkeley) 1/26/94";
|
||||
static char rcsid[] =
|
||||
"$Id: vacation.c,v 1.5 1997/02/22 19:57:39 peter Exp $";
|
||||
"$Id: vacation.c,v 1.6 1997/03/29 04:33:44 imp Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -415,7 +415,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);
|
||||
|
Loading…
Reference in New Issue
Block a user