From 131b9ccd7c5c0cbb686f36ac26f899c4bbaed135 Mon Sep 17 00:00:00 2001 From: KL Date: Thu, 13 Jul 2017 11:33:51 +0800 Subject: [PATCH] Update JobForker.php --- src/JobForker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}