public function stop($kill = false) { $this->shutdown = true; \posix_kill($this->pid, $kill ? SIGKILL : SIGTERM); }