diff options
author | imp <imp@FreeBSD.org> | 1998-01-07 00:05:20 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1998-01-07 00:05:20 +0000 |
commit | 56d7e88ba1049fadc568dc6c2c2b850171c6bcae (patch) | |
tree | bf80da5e78b97288ade9a129bf555fff4b376d89 /usr.bin/window | |
parent | ed587dfb329fb9686b71bc799d96629e52d4d3d3 (diff) | |
download | FreeBSD-src-56d7e88ba1049fadc568dc6c2c2b850171c6bcae.zip FreeBSD-src-56d7e88ba1049fadc568dc6c2c2b850171c6bcae.tar.gz |
Wait for job to finish and exit if exec fails.
Obtained from: OpenBSD (Theo de Raadt)
Diffstat (limited to 'usr.bin/window')
-rw-r--r-- | usr.bin/window/wwterminfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/window/wwterminfo.c b/usr.bin/window/wwterminfo.c index 8039b1e..d814452 100644 --- a/usr.bin/window/wwterminfo.c +++ b/usr.bin/window/wwterminfo.c @@ -98,8 +98,9 @@ wwterminfoend() return -1; case 0: execl(_PATH_RM, _PATH_RM, "-rf", wwterminfopath, 0); - return -1; + _exit(0); default: + wait(NULL); return 0; } } |