diff --git a/src/JobForker.php b/src/JobForker.php index a087403..b14a9c1 100644 --- a/src/JobForker.php +++ b/src/JobForker.php @@ -175,7 +175,7 @@ public function run(callable $runHandler, callable $failedCallback= null) // 子进程会走到这里,直接退出 if ($this->isForked) { - return; + exit(); } $keeper->setFailedCallback($failedCallback) @@ -297,4 +297,4 @@ public function wait() } $this->statistics->report(); } -} \ No newline at end of file +}