public function signal($signal) { $pid = null === $this->ppid ? $this->pid : $this->ppid; return posix_kill($pid, $signal); }