Robustness/OSX fix for nonblocking stdout writing.
Robustness/OSX fix for nonblocking stdout writing.

On OSX in particular we often fail to write large chunks to stdout
with out tweaks to blocking behavior.  It rarely if ever happens on
linux but we often need to write more than once and check for stdout
writability via a select() call before assuming the recv buffer has been
fully drained.

mayfield/ecmcli