mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 06:15:33 -04: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue