Logo

PCNTL Functions

pcntl_alarm pcntl_async_signals pcntl_errno pcntl_exec pcntl_fork pcntl_get_last_error pcntl_getpriority pcntl_setpriority pcntl_signal pcntl_signal_dispatch pcntl_signal_get_handler pcntl_sigprocmask pcntl_sigtimedwait pcntl_sigwaitinfo pcntl_strerror pcntl_unshare pcntl_wait pcntl_waitpid pcntl_wexitstatus pcntl_wifexited pcntl_wifsignaled pcntl_wifstopped pcntl_wstopsig pcntl_wtermsig

pcntl_async_signals

Logo reactphp/event-loop reactphp/event-loop
Supported Versions: PHP 7 >= 7.1.0, PHP 8
Enable/disable asynchronous signal handling or return the old setting
<?php pcntl_async_signals(?bool $enable = null): bool
<?php         if ($this->pcntl && !$this->pcntlPoll) {

            \pcntl_async_signals(true);

        }

    }
src/StreamSelectLoop.php