diff options
Diffstat (limited to 'src/unpack.c')
-rw-r--r-- | src/unpack.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unpack.c b/src/unpack.c index 943287d42..481a89db3 100644 --- a/src/unpack.c +++ b/src/unpack.c @@ -103,8 +103,8 @@ deb_reassemble(const char **filename, const char **pfilename) ohshite(_("unable to execute %s (%s)"), _("split package reassembly"), SPLITTER); } - status = subproc_wait(pid, SPLITTER); - switch (WIFEXITED(status) ? WEXITSTATUS(status) : -1) { + status = subproc_wait_check(pid, SPLITTER, PROCNOERR); + switch (status) { case 0: /* It was a part - is it complete? */ if (!stat(reasmbuf, &stab)) { @@ -120,7 +120,7 @@ deb_reassemble(const char **filename, const char **pfilename) /* No, it wasn't a part. */ break; default: - subproc_check(status, SPLITTER, 0); + internerr("unexpected exit status %d from %s", status, SPLITTER); } return true; |