public function demonize() { $pid = pcntl_fork(); if (-1 === $pid) { throw new \RuntimeException('Failure on pcntl_fork'); } if ($pid) { exit(0); } return $this; }
protected function demonize() { if ($this->shouldDemonize()) { $this->processManager->demonize(); } }