summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/pcntl/pcntl.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c
index f152ad8814..bf2fcfe525 100644
--- a/ext/pcntl/pcntl.c
+++ b/ext/pcntl/pcntl.c
@@ -639,9 +639,7 @@ PHP_FUNCTION(pcntl_waitpid)
} else {
zend_hash_clean(Z_ARRVAL_P(z_rusage));
}
- }
- if (z_rusage) {
memset(&rusage, 0, sizeof(struct rusage));
child_id = wait4((pid_t) pid, &status, options, &rusage);
} else {
@@ -693,9 +691,7 @@ PHP_FUNCTION(pcntl_wait)
} else {
zend_hash_clean(Z_ARRVAL_P(z_rusage));
}
- }
- if (z_rusage) {
memset(&rusage, 0, sizeof(struct rusage));
child_id = wait3(&status, options, &rusage);
} else if (options) {