afishbeck/HPCC-Platform — comment on commit ed70922493a2414b2656c22b30cf0f2147786cd1
File: ecl/eclcmd/eclcmd_common.cpp line 330
By ghalliday:

I think you should check for read == (unsigned)-1 in case the pipe is aborted. (I think it can occur if the error reader fails to read for an unusual reason, and a read is then called and succeeds.) It would cause a crash if it did happen so worth protecting.

Do you need a catch() to catch broken pipe errors and give a more meaningful error.