Skip to content

Commit

Permalink
improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
HillLiu committed Apr 6, 2021
1 parent a4f9717 commit f389075
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions supervisor.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private function _getParentPid($throw)
}

/**
* Run from child will kill child and parent
* Run from child will stop running child daemon loop and kill parent
*
* Run from parent will killall
*/
Expand Down Expand Up @@ -235,8 +235,8 @@ public function shutdown()
public function shutdownChildProcess()
{
if ($this[MY_PARENT] && !$this[IS_STOP_ME]) {
$this[IS_STOP_ME] = true;
$this[MY_PARALLEL]->finish();
$this[IS_STOP_ME] = true; // stop running loop
$this[MY_PARALLEL]->finish(); // call onFinish
}
}

Expand Down

0 comments on commit f389075

Please sign in to comment.