This commit is contained in:
2021-02-26 17:55:44 +08:00
parent 47ea3aee66
commit 81fe998fbe
+2 -1
View File
@@ -82,7 +82,8 @@ class OnTask extends Callback
Coroutine::getContext()['isComplete'] = false;
go(function () {
$sigkill = Coroutine::waitSignal(SIGTERM | SIGKILL | SIGUSR1, -1);
$sigkill = Coroutine::waitSignal(SIGTERM | SIGKILL | SIGUSR2, -1);
var_dump($sigkill);
if ($sigkill === false) {
return;
}