Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-patch] ConsoleOutput Lines

> 
> --=====================_171704843==_
> Content-Type: text/plain; charset="us-ascii"; format=flowed
> 
> 
> Hi,
> 
> I seem to recall a discussion about consoles on the list post 1.0.1, so all 
> this may be water under the bridge but we had a problem where errors were 
> getting corrupted in the console and the task view because of bad 
> interleaving of stdout and stderr.
> 
> All this comes from the way the two streams are mingled into one in 
> CommandLauncher. Basically if you are not going to buffer streams by line, 
> (the ideal solution) you are going to have to at least keep reading until 
> the stream goes dry. Attached is the patch we are using to fix this against 
> 1.0.1. The line buffing would be "better" in some cases, but this seems to 
> work just fine.
> 

Take a look at the head  branch CommandLauncher.java.
The pipes are drain.

Thanks for the heads up.



Back to the top