<?php pcntl_signal(int $signal, callable|int $handler, bool $restart_syscalls = true): bool
<?php $this->signals->add($signal, $listener); if ($first) { \pcntl_signal($signal, array($this->signals, 'call')); } }
<?php $this->signals->remove($signal, $listener); if ($this->signals->count($signal) === 0) { \pcntl_signal($signal, \SIG_DFL); } }
<?php }); $handled = false; $this->assertTrue(pcntl_signal(constant($signal), function () use (&$handled) { $handled = true; })); $this->forkSendSignal($signal);
<?php protected function resetSignalHandlers() { foreach($this->signalProvider() as $signal) { pcntl_signal(constant($signal[0]), SIG_DFL); } }