Skip to content

Commit 5c02e7e

Browse files
tony2001Julien Pauli
authored andcommitted
merge similar if conditions
1 parent 7e0e888 commit 5c02e7e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ext/pcntl/pcntl.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,9 +639,7 @@ PHP_FUNCTION(pcntl_waitpid)
639639
} else {
640640
zend_hash_clean(Z_ARRVAL_P(z_rusage));
641641
}
642-
}
643642

644-
if (z_rusage) {
645643
memset(&rusage, 0, sizeof(struct rusage));
646644
child_id = wait4((pid_t) pid, &status, options, &rusage);
647645
} else {
@@ -693,9 +691,7 @@ PHP_FUNCTION(pcntl_wait)
693691
} else {
694692
zend_hash_clean(Z_ARRVAL_P(z_rusage));
695693
}
696-
}
697694

698-
if (z_rusage) {
699695
memset(&rusage, 0, sizeof(struct rusage));
700696
child_id = wait3(&status, options, &rusage);
701697
} else if (options) {

0 commit comments

Comments
 (0)