private void startPipeErrorStreamThread ( ) { Thread daemon = new Thread ( ( ) -> { while ( true ) { try { String line = stderr . readLine ( ) ; System . err . println ( line ) ; if ( line == null ) { break ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } } } ) ; daemon . setDaemon ( true ) ; daemon . start ( ) ; }
Starts a thread that pipes STDERR from the child process to our STDERR .