From 05042c119304ae989c25c71212873c673c3661b5 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 6 Dec 1996 02:09:04 +0000 Subject: [PATCH] vfork w/ exit botch --- usr.bin/tn3270/sys_curses/system.c | 8 ++++---- usr.bin/vacation/vacation.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/usr.bin/tn3270/sys_curses/system.c b/usr.bin/tn3270/sys_curses/system.c index c935e2eb817..3137c43aefd 100644 --- a/usr.bin/tn3270/sys_curses/system.c +++ b/usr.bin/tn3270/sys_curses/system.c @@ -1,4 +1,4 @@ -/* $OpenBSD: system.c,v 1.2 1996/06/26 05:41:31 deraadt Exp $ */ +/* $OpenBSD: system.c,v 1.3 1996/12/06 02:09:04 deraadt Exp $ */ /*- * Copyright (c) 1988 The Regents of the University of California. @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)system.c 4.5 (Berkeley) 4/26/91";*/ -static char rcsid[] = "$OpenBSD: system.c,v 1.2 1996/06/26 05:41:31 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: system.c,v 1.3 1996/12/06 02:09:04 deraadt Exp $"; #endif /* not lint */ #include @@ -744,11 +744,11 @@ char *argv[]; cmdname = getenv("SHELL"); execlp(cmdname, cmdname, 0); perror("Exec'ing new shell...\n"); - exit(1); + _exit(1); } else { execvp(argv[1], &argv[1]); perror("Exec'ing command.\n"); - exit(1); + _exit(1); } /*NOTREACHED*/ } diff --git a/usr.bin/vacation/vacation.c b/usr.bin/vacation/vacation.c index fe7561fa276..80c68ed35d0 100644 --- a/usr.bin/vacation/vacation.c +++ b/usr.bin/vacation/vacation.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vacation.c,v 1.2 1996/06/26 05:42:27 deraadt Exp $ */ +/* $OpenBSD: vacation.c,v 1.3 1996/12/06 02:09:22 deraadt Exp $ */ /* $NetBSD: vacation.c,v 1.7 1995/04/29 05:58:27 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)vacation.c 8.2 (Berkeley) 1/26/94"; #endif -static char rcsid[] = "$OpenBSD: vacation.c,v 1.2 1996/06/26 05:42:27 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: vacation.c,v 1.3 1996/12/06 02:09:22 deraadt Exp $"; #endif /* not lint */ /* @@ -424,7 +424,7 @@ sendmessage(myname) execl(_PATH_SENDMAIL, "sendmail", "-f", myname, from, NULL); syslog(LOG_ERR, "vacation: can't exec %s: %s", _PATH_SENDMAIL, strerror(errno)); - exit(1); + _exit(1); } close(pvect[0]); sfp = fdopen(pvect[1], "w"); -- 2.20.1