public function signal(int $signo) { if (0 === $this->pid) { throw new StatusError('The fork has not been started or has already finished.'); } posix_kill($this->pid, (int) $signo); }