diff options
author | Kevin Harwell <kharwell@digium.com> | 2013-11-08 14:58:13 +0000 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2013-11-08 14:58:13 +0000 |
commit | 2564ed26f79d374fc92f5cf08ec6b5f32920be99 (patch) | |
tree | b3472194ab228d510fb3647e6c8682c1b1581c3b /utils | |
parent | 3c645e8520794b8ba7644897a07c2db4e238bf24 (diff) |
app_dahdiras: Use waitpid instead of wait4.
Several places in the code were using wait4 while other places were using
waitpid. This change makes all places use waitpid in order to make things
more consistent and since the 'rusage' object passed in/out of wait4 was
never used.
(closes issue ASTERISK-22557)
Reported by: YvesGael
Patches:
asterisk-11.5.1-wait4.patch uploaded by hurdman (license 6537)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils')
-rw-r--r-- | utils/extconf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/extconf.c b/utils/extconf.c index a31fe283a..80491c016 100644 --- a/utils/extconf.c +++ b/utils/extconf.c @@ -1330,7 +1330,6 @@ int ast_safe_system(const char *s) int x; #endif int res; - struct rusage rusage; int status; #if defined(HAVE_WORKING_FORK) || defined(HAVE_WORKING_VFORK) @@ -1352,7 +1351,7 @@ int ast_safe_system(const char *s) _exit(1); } else if (pid > 0) { for(;;) { - res = wait4(pid, &status, 0, &rusage); + res = waitpid(pid, &status, 0); if (res > -1) { res = WIFEXITED(status) ? WEXITSTATUS(status) : -1; break; |