Throw on errors in read callback
authorAlexey Spiridonov <lesha@fb.com>
Wed, 20 Apr 2016 19:08:29 +0000 (12:08 -0700)
committerFacebook Github Bot 0 <facebook-github-bot-0-bot@fb.com>
Wed, 20 Apr 2016 19:20:24 +0000 (12:20 -0700)
commitaa088ebef6319194a0a762bc16629d5187ec2f00
tree5790178a057b57149363b62b1714410786624ba9
parent007d2a6b5af5f2b898204d86558a949076f35c05
Throw on errors in read callback

Summary: Before this fix, the callback would silently ignore `ret == -1` if the error isn't `EAGAIN`.

Reviewed By: spacedentist

Differential Revision: D3193845

fb-gh-sync-id: e4a7aa37de7dab8ebe0633dd9888d8adc11dd1c2
fbshipit-source-id: e4a7aa37de7dab8ebe0633dd9888d8adc11dd1c2
folly/Subprocess.h