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:
parent
5aecc48bb0
commit
02f1d90bda
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96674
@ -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 */
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user