summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfanf <fanf@FreeBSD.org>2002-05-15 16:50:09 +0000
committerfanf <fanf@FreeBSD.org>2002-05-15 16:50:09 +0000
commit3609bfaab718be83c9ce188db03849cc3e662681 (patch)
treebc66f612f3d36ceb9c48dffdd09b3b3494a3e0b4
parent60921a588ae2ae662f4b04d4e4217ac1964c898a (diff)
downloadFreeBSD-src-3609bfaab718be83c9ce188db03849cc3e662681.zip
FreeBSD-src-3609bfaab718be83c9ce188db03849cc3e662681.tar.gz
Report errors properly if wait() fails.
PR: 30543 Approved by: dwmalone (mentor) MFC after: 3 weeks
-rw-r--r--usr.bin/xinstall/xinstall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c
index 5253432..92f30d0 100644
--- a/usr.bin/xinstall/xinstall.c
+++ b/usr.bin/xinstall/xinstall.c
@@ -720,8 +720,9 @@ strip(to_name)
err(EX_OSERR, "exec(%s)", stripbin);
default:
if (wait(&status) == -1 || status) {
+ serrno = errno;
(void)unlink(to_name);
- exit(EX_SOFTWARE);
+ errc(EX_SOFTWARE, serrno, "wait");
/* NOTREACHED */
}
}
OpenPOWER on IntegriCloud