Skip to content

Commit 806813f

Browse files
committed
address comment
1 parent 7c23a53 commit 806813f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pcntl/pcntl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ PHP_FUNCTION(pcntl_signal)
798798
RETURN_THROWS();
799799
}
800800

801-
/* we need to register in the OS side first before we update the internal list */
801+
/* Register with the OS first so that on failure we don't record a handler that was never installed */
802802
if (php_signal4(signo, pcntl_signal_handler, (int) restart_syscalls, 1) == (void *)SIG_ERR) {
803803
PCNTL_G(last_error) = errno;
804804
php_error_docref(NULL, E_WARNING, "Error assigning signal");

0 commit comments

Comments
 (0)