ioctl(FIONREAD, ...) can block. Switch to non-blocking IO and select(). Also,
don't assume task will read STDIN in one slurp.

DELTA=150  (101 added, 11 deleted, 38 changed)

git-svn-id: http://google-toolbox-for-mac.googlecode.com/svn/trunk@637 7dc7ac4e-7543-0410-b95c-c1676fc8e2a3
Initial commit
Merge branch 'master' of github.com:pepperpop/google-toolbox-for-mac