Revert 'Revert "Handle system call errors in nailgun client."'
Revert 'Revert "Handle system call errors in nailgun client."'

Summary:
This reverts commit 9f2866c60d78d6e9295b530afe982f85e06a7286.

We are hoping this fixes some of the nailgun client hanging issues.

revertrevert

Test Plan: revert-hammer

ilya-klyuchnikov/buck,siddhartharay007/buck,shybovycha/buck,shs96c/buck,zpao/buck,LegNeato/buck,neonichu/buck,Learn-Android-app/buck,vschs007/buck,bocon13/buck,lukw00/buck,JoelMarcey/buck,rmaz/buck,LegNeato/buck,darkforestzero/buck,mnuessler/buck,vschs007/buck,illicitonion/buck,sdwilsh/buck,shs96c/buck,bocon13/buck,siddhartharay007/buck,dushmis/buck,shs96c/buck,ilya-klyuchnikov/buck,rmaz/buck,illicitonion/buck,sdwilsh/buck,darkforestzero/buck,daedric/buck,dpursehouse/buck,rhencke/buck,romanoid/buck,OkBuilds/buck,vine/buck,Dominator008/buck,Dominator008/buck,MarkRunWu/buck,janicduplessis/buck,justinmuller/buck,luiseduardohdbackup/buck,neonichu/buck,rowillia/buck,shybovycha/buck,davido/buck,vschs007/buck,Heart2009/buck,facebook/buck,rowillia/buck,mikekap/buck,nguyentruongtho/buck,Dominator008/buck,Addepar/buck,stuhood/buck,neonichu/buck,darkforestzero/buck,kageiit/buck,mnuessler/buck,Dominator008/buck,pwz3n0/buck,raviagarwal7/buck,justinmuller/buck,Distrotech/buck,SeleniumHQ/buck,SeleniumHQ/buck,mikekap/buck,LegNeato/buck,ilya-klyuchnikov/buck,Distrotech/buck,clonetwin26/buck,janicduplessis/buck,illicitonion/buck,shybovycha/buck,Heart2009/buck,OkBuilds/buck,rmaz/buck,LegNeato/buck,tgummerer/buck,justinmuller/buck,illicitonion/buck,Addepar/buck,dushmis/buck,zhan-xiong/buck,k21/buck,clonetwin26/buck,lukw00/buck,Distrotech/buck,mogers/buck,sdwilsh/buck,mnuessler/buck,marcinkwiatkowski/buck,vschs007/buck,zpao/buck,dpursehouse/buck,Learn-Android-app/buck,davido/buck,tgummerer/buck,tgummerer/buck,1yvT0s/buck,clonetwin26/buck,bocon13/buck,LegNeato/buck,mogers/buck,facebook/buck,facebook/buck,shs96c/buck,Distrotech/buck,zhan-xiong/buck,1yvT0s/buck,SeleniumHQ/buck,grumpyjames/buck,rowillia/buck,JoelMarcey/buck,nguyentruongtho/buck,justinmuller/buck,artiya4u/buck,siddhartharay007/buck,Learn-Android-app/buck,illicitonion/buck,lukw00/buck,zhan-xiong/buck,dpursehouse/buck,neonichu/buck,vschs007/buck,Addepar/buck,dsyang/buck,LegNeato/buck,romanoid/buck,nguyentruongtho/buck,daedric/buck,zhuxiaohao/buck,clonetwin26/buck,janicduplessis/buck,JoelMarcey/buck,sdwilsh/buck,Heart2009/buck,rmaz/buck,siddhartharay007/buck,lukw00/buck,shybovycha/buck,Dominator008/buck,zhan-xiong/buck,Dominator008/buck,nguyentruongtho/buck,rowillia/buck,artiya4u/buck,darkforestzero/buck,artiya4u/buck,raviagarwal7/buck,rhencke/buck,Addepar/buck,mogers/buck,ilya-klyuchnikov/buck,clonetwin26/buck,artiya4u/buck,raviagarwal7/buck,1yvT0s/buck,romanoid/buck,bocon13/buck,mikekap/buck,JoelMarcey/buck,artiya4u/buck,romanoid/buck,ilya-klyuchnikov/buck,neonichu/buck,janicduplessis/buck,zhan-xiong/buck,liuyang-li/buck,stuhood/buck,grumpyjames/buck,facebook/buck,clonetwin26/buck,darkforestzero/buck,pwz3n0/buck,neonichu/buck,JoelMarcey/buck,raviagarwal7/buck,justinmuller/buck,pwz3n0/buck,brettwooldridge/buck,shs96c/buck,k21/buck,rhencke/buck,daedric/buck,brettwooldridge/buck,JoelMarcey/buck,brettwooldridge/buck,daedric/buck,shybovycha/buck,k21/buck,artiya4u/buck,illicitonion/buck,zhan-xiong/buck,liuyang-li/buck,dpursehouse/buck,daedric/buck,mnuessler/buck,Dominator008/buck,rowillia/buck,lukw00/buck,shs96c/buck,dushmis/buck,rmaz/buck,davido/buck,artiya4u/buck,dsyang/buck,vine/buck,zhan-xiong/buck,dsyang/buck,mikekap/buck,illicitonion/buck,robbertvanginkel/buck,JoelMarcey/buck,rmaz/buck,siddhartharay007/buck,shs96c/buck,Dominator008/buck,justinmuller/buck,stuhood/buck,JoelMarcey/buck,stuhood/buck,ilya-klyuchnikov/buck,Addepar/buck,zpao/buck,k21/buck,Addepar/buck,sdwilsh/buck,grumpyjames/buck,grumpyjames/buck,mikekap/buck,dpursehouse/buck,illicitonion/buck,mikekap/buck,daedric/buck,brettwooldridge/buck,Addepar/buck,bocon13/buck,stuhood/buck,hgl888/buck,Dominator008/buck,artiya4u/buck,Distrotech/buck,justinmuller/buck,mogers/buck,liuyang-li/buck,LegNeato/buck,stuhood/buck,mogers/buck,SeleniumHQ/buck,marcinkwiatkowski/buck,sdwilsh/buck,marcinkwiatkowski/buck,rhencke/buck,daedric/buck,zhuxiaohao/buck,grumpyjames/buck,Addepar/buck,janicduplessis/buck,Dominator008/buck,nguyentruongtho/buck,raviagarwal7/buck,shs96c/buck,lukw00/buck,illicitonion/buck,1yvT0s/buck,marcinkwiatkowski/buck,janicduplessis/buck,darkforestzero/buck,romanoid/buck,zpao/buck,pwz3n0/buck,pwz3n0/buck,mogers/buck,artiya4u/buck,bocon13/buck,janicduplessis/buck,robbertvanginkel/buck,Learn-Android-app/buck,davido/buck,zhan-xiong/buck,shybovycha/buck,shybovycha/buck,stuhood/buck,kageiit/buck,tgummerer/buck,mikekap/buck,tgummerer/buck,siddhartharay007/buck,zhan-xiong/buck,shybovycha/buck,mikekap/buck,LegNeato/buck,hgl888/buck,robbertvanginkel/buck,k21/buck,liuyang-li/buck,mikekap/buck,dushmis/buck,Heart2009/buck,luiseduardohdbackup/buck,shybovycha/buck,MarkRunWu/buck,bocon13/buck,tgummerer/buck,rowillia/buck,darkforestzero/buck,sdwilsh/buck,luiseduardohdbackup/buck,robbertvanginkel/buck,rmaz/buck,vschs007/buck,facebook/buck,shybovycha/buck,brettwooldridge/buck,zhan-xiong/buck,luiseduardohdbackup/buck,vine/buck,1yvT0s/buck,zhan-xiong/buck,liuyang-li/buck,zhuxiaohao/buck,shs96c/buck,shs96c/buck,brettwooldridge/buck,daedric/buck,vschs007/buck,pwz3n0/buck,rowillia/buck,rhencke/buck,rhencke/buck,stuhood/buck,darkforestzero/buck,raviagarwal7/buck,MarkRunWu/buck,daedric/buck,lukw00/buck,Learn-Android-app/buck,zhan-xiong/buck,zpao/buck,luiseduardohdbackup/buck,davido/buck,Dominator008/buck,siddhartharay007/buck,k21/buck,OkBuilds/buck,justinmuller/buck,Heart2009/buck,rhencke/buck,artiya4u/buck,kageiit/buck,romanoid/buck,dsyang/buck,k21/buck,davido/buck,hgl888/buck,janicduplessis/buck,shybovycha/buck,shs96c/buck,ilya-klyuchnikov/buck,justinmuller/buck,zhuxiaohao/buck,janicduplessis/buck,bocon13/buck,vine/buck,OkBuilds/buck,marcinkwiatkowski/buck,Distrotech/buck,darkforestzero/buck,k21/buck,bocon13/buck,daedric/buck,vschs007/buck,janicduplessis/buck,rmaz/buck,tgummerer/buck,mogers/buck,1yvT0s/buck,marcinkwiatkowski/buck,rhencke/buck,vine/buck,tgummerer/buck,davido/buck,robbertvanginkel/buck,romanoid/buck,Distrotech/buck,Heart2009/buck,hgl888/buck,dushmis/buck,liuyang-li/buck,siddhartharay007/buck,robbertvanginkel/buck,1yvT0s/buck,liuyang-li/buck,marcinkwiatkowski/buck,dsyang/buck,facebook/buck,zhuxiaohao/buck,SeleniumHQ/buck,illicitonion/buck,lukw00/buck,dushmis/buck,daedric/buck,grumpyjames/buck,romanoid/buck,neonichu/buck,vine/buck,dpursehouse/buck,ilya-klyuchnikov/buck,darkforestzero/buck,rowillia/buck,shybovycha/buck,JoelMarcey/buck,marcinkwiatkowski/buck,marcinkwiatkowski/buck,k21/buck,ilya-klyuchnikov/buck,SeleniumHQ/buck,raviagarwal7/buck,tgummerer/buck,vschs007/buck,janicduplessis/buck,brettwooldridge/buck,kageiit/buck,LegNeato/buck,mnuessler/buck,clonetwin26/buck,k21/buck,OkBuilds/buck,LegNeato/buck,SeleniumHQ/buck,bocon13/buck,raviagarwal7/buck,SeleniumHQ/buck,brettwooldridge/buck,raviagarwal7/buck,zpao/buck,Learn-Android-app/buck,mnuessler/buck,robbertvanginkel/buck,vine/buck,JoelMarcey/buck,pwz3n0/buck,marcinkwiatkowski/buck,zhuxiaohao/buck,vschs007/buck,rowillia/buck,davido/buck,romanoid/buck,SeleniumHQ/buck,1yvT0s/buck,bocon13/buck,luiseduardohdbackup/buck,vine/buck,LegNeato/buck,MarkRunWu/buck,stuhood/buck,LegNeato/buck,illicitonion/buck,robbertvanginkel/buck,davido/buck,k21/buck,Distrotech/buck,Distrotech/buck,zhuxiaohao/buck,janicduplessis/buck,OkBuilds/buck,SeleniumHQ/buck,sdwilsh/buck,bocon13/buck,rhencke/buck,Heart2009/buck,vschs007/buck,Learn-Android-app/buck,hgl888/buck,Heart2009/buck,artiya4u/buck,grumpyjames/buck,pwz3n0/buck,robbertvanginkel/buck,grumpyjames/buck,MarkRunWu/buck,OkBuilds/buck,luiseduardohdbackup/buck,nguyentruongtho/buck,rowillia/buck,liuyang-li/buck,Distrotech/buck,davido/buck,hgl888/buck,zhan-xiong/buck,luiseduardohdbackup/buck,shs96c/buck,dushmis/buck,MarkRunWu/buck,mnuessler/buck,dsyang/buck,1yvT0s/buck,justinmuller/buck,dsyang/buck,dpursehouse/buck,rmaz/buck,daedric/buck,JoelMarcey/buck,dsyang/buck,ilya-klyuchnikov/buck,neonichu/buck,dsyang/buck,mikekap/buck,zpao/buck,vschs007/buck,robbertvanginkel/buck,ilya-klyuchnikov/buck,grumpyjames/buck,grumpyjames/buck,mogers/buck,vine/buck,Addepar/buck,sdwilsh/buck,clonetwin26/buck,zhuxiaohao/buck,rmaz/buck,stuhood/buck,liuyang-li/buck,OkBuilds/buck,grumpyjames/buck,dushmis/buck,justinmuller/buck,dsyang/buck,Learn-Android-app/buck,stuhood/buck,MarkRunWu/buck,mnuessler/buck,justinmuller/buck,hgl888/buck,Distrotech/buck,dpursehouse/buck,vine/buck,lukw00/buck,OkBuilds/buck,tgummerer/buck,pwz3n0/buck,ilya-klyuchnikov/buck,rhencke/buck,OkBuilds/buck,OkBuilds/buck,mikekap/buck,pwz3n0/buck,brettwooldridge/buck,facebook/buck,hgl888/buck,shs96c/buck,Learn-Android-app/buck,OkBuilds/buck,zhuxiaohao/buck,clonetwin26/buck,brettwooldridge/buck,mikekap/buck,k21/buck,JoelMarcey/buck,brettwooldridge/buck,mogers/buck,darkforestzero/buck,dsyang/buck,rmaz/buck,LegNeato/buck,romanoid/buck,sdwilsh/buck,ilya-klyuchnikov/buck,sdwilsh/buck,raviagarwal7/buck,marcinkwiatkowski/buck,robbertvanginkel/buck,clonetwin26/buck,robbertvanginkel/buck,kageiit/buck,marcinkwiatkowski/buck,darkforestzero/buck,hgl888/buck,davido/buck,grumpyjames/buck,dushmis/buck,nguyentruongtho/buck,dsyang/buck,tgummerer/buck,romanoid/buck,Learn-Android-app/buck,illicitonion/buck,mogers/buck,raviagarwal7/buck,brettwooldridge/buck,SeleniumHQ/buck,neonichu/buck,sdwilsh/buck,Addepar/buck,MarkRunWu/buck,davido/buck,mnuessler/buck,justinmuller/buck,davido/buck,daedric/buck,darkforestzero/buck,mogers/buck,illicitonion/buck,rowillia/buck,marcinkwiatkowski/buck,robbertvanginkel/buck,raviagarwal7/buck,Dominator008/buck,clonetwin26/buck,clonetwin26/buck,vschs007/buck,romanoid/buck,SeleniumHQ/buck,rhencke/buck,liuyang-li/buck,shybovycha/buck,kageiit/buck,OkBuilds/buck,rowillia/buck,brettwooldridge/buck,k21/buck,kageiit/buck,romanoid/buck,dsyang/buck,rmaz/buck,JoelMarcey/buck,raviagarwal7/buck,Addepar/buck,dushmis/buck,vine/buck,SeleniumHQ/buck,Addepar/buck,liuyang-li/buck,lukw00/buck,lukw00/buck,Addepar/buck,sdwilsh/buck,clonetwin26/buck,pwz3n0/buck,Heart2009/buck,rmaz/buck,Learn-Android-app/buck,luiseduardohdbackup/buck,siddhartharay007/buck