Skip to content

Commit d67120e

Browse files
authored
Merge pull request #139 from tave/master-tave-use-correct-pid-when-handling-worker-exits
Fix › Using correct pid when monitoring exiting workers
2 parents bd0343a + 3e60ab1 commit d67120e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GearmanManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ protected function process_loop() {
308308
} else {
309309
$exit_status = $code;
310310
}
311-
$this->child_status_monitor($pid, $worker, $exit_status);
311+
$this->child_status_monitor($exited, $worker, $exit_status);
312312
if (!$this->stop_work) {
313313
$this->start_worker($worker);
314314
}

0 commit comments

Comments
 (0)