diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2014-07-21 18:09:24 +0200 |
---|---|---|
committer | Yongqin Liu of Linaro <yongqin.liu@linaro.org> | 2014-07-23 08:20:37 +0000 |
commit | f648d4182aa10721798299667af456ac541c9318 (patch) | |
tree | cafd88d5c6744b871cb55a932ba773d5870f84e6 | |
parent | a626dff6b643af744065a82be5549d82d9781e16 (diff) | |
download | busybox-linaro-1.21-master-20140515.tar.gz |
Don't use wait3()linaro-1.21-master-20140515
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>
(cherry picked from commit 5e84abef9654e87625b930e760c7f1227806cddf)
-rw-r--r-- | miscutils/time.c | 4 |
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; |