If memory allocation for stdout buffer fails, we
drop the stdout read from the link and return an empty buffer.
If link_soak failed, it will corrupt the order of
the data we expect to read next on the link. This will cause failure and
disconnection. So remove the code for checking failure of link_soak.
Change return type of process_available_results().
There is no necessity to return an integer since it handles failures and the
caller doesn't have to worry if it succeeded or failed.
Differentiate between application and system level failures when retrieving
stdout of task from worker. Propagate these failures to
process_available_results() where failures are currently handled.
Merge branch 'wqbigstdout' of github.com:dpandiar/cctools into wqfailhandling