We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e0e888 commit 5c02e7eCopy full SHA for 5c02e7e
ext/pcntl/pcntl.c
@@ -639,9 +639,7 @@ PHP_FUNCTION(pcntl_waitpid)
639
} else {
640
zend_hash_clean(Z_ARRVAL_P(z_rusage));
641
}
642
- }
643
644
- if (z_rusage) {
645
memset(&rusage, 0, sizeof(struct rusage));
646
child_id = wait4((pid_t) pid, &status, options, &rusage);
647
@@ -693,9 +691,7 @@ PHP_FUNCTION(pcntl_wait)
693
691
694
692
695
696
697
698
699
700
child_id = wait3(&status, options, &rusage);
701
} else if (options) {
0 commit comments