diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-01-03 12:30:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-01-03 12:30:48 +0000 |
commit | b724eb512c63b4829d2265b12c1e9b63a8f8865a (patch) | |
tree | d9dad9b34ce5680420a48d0124172d587e8cb0af /usr.bin | |
parent | 23c5f7307f9bf2d587e3fb6f066a7ce833ddece0 (diff) |
if fork/exec fails, bail properly
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/window/wwterminfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |