1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

Report errors properly if wait() fails.

PR:		30543
Approved by:	dwmalone (mentor)
MFC after:	3 weeks
This commit is contained in:
Tony Finch 2002-05-15 16:50:09 +00:00
parent 5aecc48bb0
commit 02f1d90bda
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96674

View File

@ -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 */
}
}