diff options
author | Guillem Jover <guillem@debian.org> | 2014-09-10 12:56:16 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-10-06 00:48:12 +0200 |
commit | 5c4fdbe903f5006eee3337a1b2c08c1cfe114191 (patch) | |
tree | f8c163f75bcc784b96a6101efcbe300d80bb9225 /dselect/method.cc | |
parent | a34bbbbc918c30a1f6bc403c62512d3c4afb3cbc (diff) | |
download | dpkg-5c4fdbe903f5006eee3337a1b2c08c1cfe114191.tar.gz |
dpkg, dselect: Use subproc_wait_check() instead of ad-hoc code in call sites
Diffstat (limited to 'dselect/method.cc')
-rw-r--r-- | dselect/method.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dselect/method.cc b/dselect/method.cc index 8c43a0b11..92049e0f3 100644 --- a/dselect/method.cc +++ b/dselect/method.cc @@ -136,7 +136,7 @@ static urqresult falliblesubprocess(struct command *cmd) { pid_t pid; - int status, i, c; + int i, c; cursesoff(); @@ -148,12 +148,12 @@ falliblesubprocess(struct command *cmd) command_exec(cmd); } - status = subproc_wait(pid, cmd->name); + fprintf(stderr, "\n"); + + i = subproc_wait_check(pid, cmd->name, PROCWARN); pop_cleanup(ehflag_normaltidy); - fprintf(stderr, "\n"); - i = subproc_check(status, cmd->name, PROCWARN); if (i == 0) { sleep(1); return urqr_normal; |