From b724eb512c63b4829d2265b12c1e9b63a8f8865a Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 3 Jan 1998 12:30:48 +0000 Subject: if fork/exec fails, bail properly --- usr.bin/window/wwterminfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/window/wwterminfo.c b/usr.bin/window/wwterminfo.c index c6b3e397e14..905a5444eec 100644 --- a/usr.bin/window/wwterminfo.c +++ b/usr.bin/window/wwterminfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wwterminfo.c,v 1.4 1997/02/25 00:05:10 downsj Exp $ */ +/* $OpenBSD: wwterminfo.c,v 1.5 1998/01/03 12:30:47 deraadt Exp $ */ /* * Copyright (c) 1982, 1993 @@ -40,7 +40,7 @@ #if 0 static char sccsid[] = "@(#)wwterminfo.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: wwterminfo.c,v 1.4 1997/02/25 00:05:10 downsj Exp $"; +static char rcsid[] = "$OpenBSD: wwterminfo.c,v 1.5 1998/01/03 12:30:47 deraadt Exp $"; #endif #endif /* not lint */ @@ -104,7 +104,7 @@ wwterminfoend() return -1; case 0: execl(_PATH_RM, _PATH_RM, "-rf", wwterminfopath, 0); - return -1; + _exit(0); default: return 0; } -- cgit v1.2.3