original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Closing IO and terminating.
  
  @param int $sig Unix signal
docstring_tokens: Closing IO and terminating .