diff options
author | Guillem Jover <guillem@debian.org> | 2011-01-20 18:41:09 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2011-01-31 06:30:22 +0100 |
commit | 44e022a801e0b5720a6e8d6887788ebf15b9995f (patch) | |
tree | 643a7f0dbde6b550188f0b16fd7cde16584ddca8 /dselect/method.cc | |
parent | ad95ee210312c38c12c6054e13dd45c1a8ff1c6c (diff) | |
download | dpkg-44e022a801e0b5720a6e8d6887788ebf15b9995f.tar.gz |
Use pid instead of c1 for variable name
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 b7cd44175..4d02890e1 100644 --- a/dselect/method.cc +++ b/dselect/method.cc @@ -139,20 +139,20 @@ static enum urqresult lockmethod(void) { static urqresult falliblesubprocess(struct command *cmd) { - pid_t c1; + pid_t pid; int status, i, c; cursesoff(); subproc_signals_setup(cmd->name); - c1 = subproc_fork(); - if (!c1) { + pid = subproc_fork(); + if (pid == 0) { subproc_signals_cleanup(0, 0); command_exec(cmd); } - status = subproc_wait(c1, cmd->name); + status = subproc_wait(pid, cmd->name); pop_cleanup(ehflag_normaltidy); |