protected function quitSubProcess($subProcess, array $pipes)
    {
        fwrite($pipes[0], "QUIT\n");
        fclose($pipes[0]);
        fclose($pipes[1]);
        fclose($pipes[2]);
        proc_close($subProcess);
    }
protected function quitSubProcess($subProcess, array $pipes)
    {
        fwrite($pipes[0], "QUIT\n");
        fclose($pipes[0]);
        fclose($pipes[1]);
        fclose($pipes[2]);
        proc_close($subProcess);
    }
protected function quitSubProcess ( $ subProcess , array $ pipes ) { fwrite ( $ pipes [ 0 ] , "QUIT\n" ) ; fclose ( $ pipes [ 0 ] ) ; fclose ( $ pipes [ 1 ] ) ; fclose ( $ pipes [ 2 ] ) ; proc_close ( $ subProcess ) ; }
Cleanly terminates the given sub process

@param resource $subProcess The sub process to quite
@param array $pipes The current STDIN, STDOUT and STDERR pipes
@return void
Cleanly terminates the given sub process