public function restart() { $spawn = count($this->ipcClients); for ($i = 0; $i < $spawn; $i++) { $this->spawn()->when(function () { @\fwrite(current($this->ipcClients), "\n"); next($this->ipcClients); }); } $this->expectedFailures += $spawn; }