public function closeWrite() { if ($this->bevWrite) { if (isset($this->bevWrite)) { $this->bevWrite->free(); } $this->bevWrite = null; } if ($this->fdWrite) { fclose($this->fdWrite); $this->fdWrite = null; } return $this; }
/** * Called when the request aborted. * @param \PHPDaemon\Core\ShellCommand $process * @return void */ public function onWrite($process) { if ($this->attrs->stdin_done && $this->proc->writeState === false) { $this->proc->closeWrite(); } }