aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-03 11:36:59 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-03 11:36:59 +0000
commit779d72c642a730d0453a92c05741d00e05a1338e (patch)
treeab66bcc7479e331059c7d8ad5018653308a0a0bc
parent396988536407ff9e99137eb65652753a8011dbe7 (diff)
downloadpaludis-779d72c642a730d0453a92c05741d00e05a1338e.tar.gz
paludis-779d72c642a730d0453a92c05741d00e05a1338e.tar.xz
Use waitpid, not wait
-rw-r--r--paludis/util/system.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/util/system.cc b/paludis/util/system.cc
index 9b96ef4..c7ab092 100644
--- a/paludis/util/system.cc
+++ b/paludis/util/system.cc
@@ -369,7 +369,7 @@ paludis::run_command(const Command & cmd)
stderr_write_fd = -1;
stderr_close_fd = -1;
- if (-1 == wait(&status))
+ if (-1 == waitpid(child, &status, 0))
throw RunCommandError("wait failed: " + stringify(strerror(errno)));
return WIFSIGNALED(status) ? WTERMSIG(status) + 128 : WEXITSTATUS(status);
}