aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2014-07-21 18:09:24 +0200
committerBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2014-07-21 18:09:24 +0200
commit5e84abef9654e87625b930e760c7f1227806cddf (patch)
tree67b645d4bd22789943fede880c1bca7a4d2c056e
parente39fa9e604bdf73a188b68dbcc4be0cf5b996ab8 (diff)
downloadbusybox-linaro-1.21.tar.gz
Don't use wait3()linaro-1.21
wait3() is obsolete and has been removed from 64-bit Bionic. Use wait4() instead, that's available anywhere. Change-Id: I5513ae77e8d6033d463cdc3a26e8e7ee2e5bb448 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r--miscutils/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/time.c b/miscutils/time.c
index 19b0b44c9..6a4de9837 100644
--- a/miscutils/time.c
+++ b/miscutils/time.c
@@ -69,9 +69,9 @@ static void resuse_end(pid_t pid, resource_t *resp)
{
pid_t caught;
- /* Ignore signals, but don't ignore the children. When wait3
+ /* Ignore signals, but don't ignore the children. When wait4
* returns the child process, set the time the command finished. */
- while ((caught = wait3(&resp->waitstatus, 0, &resp->ru)) != pid) {
+ while ((caught = wait4(-1, &resp->waitstatus, 0, &resp->ru)) != pid) {
if (caught == -1 && errno != EINTR) {
bb_perror_msg("wait");
return;