Add signal to function signature
This commit is contained in:
parent
d40f5d940a
commit
89e5101ecd
@ -239,7 +239,7 @@ class Asynchronous
|
|||||||
* The signal handler
|
* The signal handler
|
||||||
*/
|
*/
|
||||||
foreach ([SIGINT, SIGTERM] as $SIGNAL)
|
foreach ([SIGINT, SIGTERM] as $SIGNAL)
|
||||||
pcntl_signal($SIGNAL, function () use (&$instance) {
|
pcntl_signal($SIGNAL, function ($signal) use (&$instance) {
|
||||||
if ($instance->isChild)
|
if ($instance->isChild)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user