public function terminate($sig = null)
    {
        // Terminates application without reading anything more.
        foreach ($this->pipes as $key => $res) {
            $this->close($key);
        }
        $this->debug('process terminated');
        proc_terminate($this->process, $sig);
    }
public function terminate($sig = null)
    {
        // Terminates application without reading anything more.
        foreach ($this->pipes as $key => $res) {
            $this->close($key);
        }
        $this->debug('process terminated');
        proc_terminate($this->process, $sig);
    }
public function terminate ( $ sig = null ) { // Terminates application without reading anything more. foreach ( $ this -> pipes as $ key => $ res ) { $ this -> close ( $ key ) ; } $ this -> debug ( 'process terminated' ) ; proc_terminate ( $ this -> process , $ sig ) ; }
Closing IO and terminating.

@param int $sig Unix signal
Closing IO and terminating .