public function close() { if (!$this->freed) { $this->freed = true; if (isset($this->bev)) { $this->bev->free(); } $this->bev = null; //$this->eventLoop->interrupt(); } if ($this->pool) { $this->pool->detach($this); } }
/** * Close the process * @return void */ public function close() { parent::close(); $this->closeWrite(); if (is_resource($this->pd)) { proc_close($this->pd); } }