avoid deadlocking on blocking reads for shell out on windows
avoid deadlocking on blocking reads for shell out on windows

I'm none too pleased with having to run 3 threads to read 2 IO streams,
but this is the way windows is meant to be programmed.

ccsplit/chef,Tensibai/chef,permyakovsv/chef,nicklv/chef,nellshamrell/chef,Ppjet6/chef,Kast0rTr0y/chef,askl56/chef,AndyBoucher/Chef-Testing,polamjag/chef,kaznishi/chef,robmul/chef,jagdeesh109/chef,mal/chef,ccsplit/chef,SUSE-Cloud/chef,nellshamrell/chef,lamont-granquist/chef,lamont-granquist/chef,MsysTechnologiesllc/chef,strangelittlemonkey/chef,aaron-lane/chef,ranjib/chef,swalberg/chef,onlyhavecans/chef,custora/chef,OpSitters/chef,brettcave/chef,pburkholder/chef,tas50/chef-1,ChaosCloud/chef,3dinfluence/chef,strangelittlemonkey/chef,evan2645/chef,karthikrev/chef,permyakovsv/chef,mattray/chef,docwhat/chef,antonifs/chef,natewalck/chef,youngjl1/chef,webframp/chef,sempervictus/chef,erkolson/chef,docwhat/chef,nellshamrell/chef,criteo-forks/chef,circleback/chef,OpSitters/chef,askl56/chef,permyakovsv/chef,sometimesfood/chef,ccope/chef,martinb3/chef,tbriggs-curse/chef,OpSitters/chef,tbriggs-curse/chef,ChaosCloud/chef,tbriggs-curse/chef,paulmooring/chef,lamont-granquist/chef,jagdeesh109/chef,chef/chef,Igorshp/chef,gsaslis/chef,aaron-lane/chef,h4ck3rm1k3/chef,nalingarg2/chef-1,martinb3/chef,martinisoft/chef,nguyen-tien-mulodo/chef,nalingarg2/chef-1,opsengine/chef,jk47/chef,ccope/chef,martinb3/chef,patcon/chef,clintoncwolfe/chef,zuazo-forks/chef,tbunnyman/chef,jordane/chef,jmhardison/chef,legal90/chef,mwrock/chef,nvwls/chef,tbunnyman/chef,ShadySQL/chef-merged,andrewpsp/chef,jk47/chef,EasonYi/chef,martinb3/chef,mwrock/chef,jkerry/chef,nvwls/chef,custora/chef,nguyen-tien-mulodo/chef,robmul/chef,someara/chef,faspl/chef,legal90/chef,nsdavidson/chef,jordane/chef,joemiller/chef,jimmymccrory/chef,juliandunn/chef,jk47/chef,Igorshp/chef,renanvicente/chef,jaymzh/chef,ktpan/chef-play,nguyen-tien-mulodo/chef,davestarling/chef,sometimesfood/chef,ekometti/chef,acaiafa/chef,ChaosCloud/chef,jmhardison/chef,evan2645/chef,BackSlasher/chef,ccope/chef,BackSlasher/chef,sideci-sample/sideci-sample-chef,jmhardison/chef,ShadySQL/chef-merged,docwhat/chef,patcon/chef,ktpan/chef-play,GabKlein/chef-merged,zshuo/chef,tomdoherty/chef,sekrett/chef,ktpan/chef-play,juliandunn/chef,SUSE-Cloud/chef,opsengine/chef,skmichaelson/chef,sempervictus/chef,juliandunn/chef,ckaushik/chef,mal/chef,sometimesfood/chef,smurawski/chef,jblaine/chef,nalingarg2/chef-1,ranjib/chef,MsysTechnologiesllc/chef,cgvarela/chef,ktpan/chef-play,jonlives/chef,malisettirammurthy/chef,cmluciano/chef,jonlives/chef,Tensibai/chef,zshuo/chef,ekometti/chef,oclaussen/chef,nsdavidson/chef,cmluciano/chef,nguyen-tien-mulodo/chef,malisettirammurthy/chef,criteo-forks/chef,baberthal/chef,circleback/chef,antonifs/chef,renanvicente/chef,sometimesfood/chef,nathwill/chef,nathwill/chef,kisoku/chef,zuazo-forks/chef,brettcave/chef,antonifs/chef,mikedodge04/chef,kamaradclimber/chef,ekometti/chef,baberthal/chef,kaznishi/chef,gsaslis/chef,faspl/chef,davestarling/chef,someara/chef,robmul/chef,AndyBoucher/Chef-Testing,kisoku/chef,ducthanh/chef,DeWaRs1206/chef,erkolson/chef,baberthal/chef,acaiafa/chef,Kast0rTr0y/chef,patcon/chef,SUSE-Cloud/chef,joemiller/chef,circleback/chef,jkerry/chef,tbriggs-curse/chef,cachamber/chef,pburkholder/chef,mikefaille/chef,jblaine/chef,jagdeesh109/chef,3dinfluence/chef,mio-g/chef,ducthanh/chef,tbriggs-curse/chef,martinisoft/chef,andrewpsp/chef,Ppjet6/chef,oclaussen/chef,tbriggs-curse/chef,nellshamrell/chef,ChaosCloud/chef,sideci-sample/sideci-sample-chef,EasonYi/chef,Kast0rTr0y/chef,faspl/chef,AndyBoucher/Chef-Testing,jaymzh/chef,Kast0rTr0y/chef,coderanger/chef,polamjag/chef,ChaosCloud/chef,MichaelPereira/chef,paulmooring/chef,ChaosCloud/chef,aspiers/chef,sysbot/chef,acaiafa/chef,smurawski/chef,askl56/chef,Ppjet6/chef,ranjib/chef,swalberg/chef,josb/chef,baberthal/chef,pburkholder/chef,juliandunn/chef,lamont-granquist/chef,3dinfluence/chef,ccsplit/chef,permyakovsv/chef,kaznishi/chef,youngjl1/chef,nicklv/chef,onlyhavecans/chef,tbunnyman/chef,jmhardison/chef,danielsdeleo/seth,joemiller/chef,youngjl1/chef,h4ck3rm1k3/chef,gsaslis/chef,paulmooring/chef,antonifs/chef,aaron-lane/chef,kisoku/chef,MichaelPereira/chef,mio-g/chef,jonlives/chef,jimmymccrory/chef,jagdeesh109/chef,ckaushik/chef,jmhardison/chef,SUSE-Cloud/chef,polamjag/chef,gsaslis/chef,joyent/chef,jmhardison/chef,cmluciano/chef,cgvarela/chef,pburkholder/chef,bahamas10/chef,nvwls/chef,mio-g/chef,sanditiffin/chef,nvwls/chef,mal/chef,3dinfluence/chef,zshuo/chef,malisettirammurthy/chef,josb/chef,higanworks/chef,danielsdeleo/seth,MichaelPereira/chef,h4ck3rm1k3/chef,webframp/chef,nicklv/chef,jagdeesh109/chef,sanditiffin/chef,ckaushik/chef,EasonYi/chef,OpSitters/chef,cachamber/chef,sideci-sample/sideci-sample-chef,mikedodge04/chef,josb/chef,karthikrev/chef,AndyBoucher/Chef-Testing,skmichaelson/chef,malisettirammurthy/chef,Igorshp/chef,MsysTechnologiesllc/chef,circleback/chef,gene1wood/chef,custora/chef,brettcave/chef,nathwill/chef,webframp/chef,bahamas10/chef,mikefaille/chef,circleback/chef,jimmymccrory/chef,nicklv/chef,ducthanh/chef,davestarling/chef,chef/chef,ShadySQL/chef-merged,sempervictus/chef,hfichter/chef,jagdeesh109/chef,martinisoft/chef,baberthal/chef,criteo-forks/chef,BackSlasher/chef,ShadySQL/chef-merged,cachamber/chef,sekrett/chef,lamont-granquist/chef,AndyBoucher/Chef-Testing,nicklv/chef,AndyBoucher/Chef-Testing,mattray/chef,Ppjet6/chef,karthikrev/chef,mal/chef,jblaine/chef,jimmymccrory/chef,webframp/chef,natewalck/chef,jaymzh/chef,ranjib/chef,custora/chef,ranjib/chef,gene1wood/chef,joyent/chef,brettcave/chef,sekrett/chef,ekometti/chef,mattray/chef,jblaine/chef,oclaussen/chef,MsysTechnologiesllc/chef,tomdoherty/chef,zuazo-forks/chef,natewalck/chef,oclaussen/chef,aspiers/chef,nvwls/chef,someara/chef,h4ck3rm1k3/chef,tbunnyman/chef,sideci-sample/sideci-sample-chef,cachamber/chef,ckaushik/chef,skmichaelson/chef,onlyhavecans/chef,ranjib/chef,onlyhavecans/chef,DeWaRs1206/chef,DeWaRs1206/chef,b002368/chef-repo,jaymzh/chef,OpSitters/chef,zuazo-forks/chef,jblaine/chef,smurawski/chef,antonifs/chef,evan2645/chef,nsdavidson/chef,jk47/chef,higanworks/chef,tas50/chef-1,ekometti/chef,grubernaut/chef,b002368/chef-repo,adamleff/chef,ccope/chef,BackSlasher/chef,aspiers/chef,webframp/chef,martinisoft/chef,jordane/chef,danielsdeleo/seth,3dinfluence/chef,Kast0rTr0y/chef,baberthal/chef,paulmooring/chef,opsengine/chef,strangelittlemonkey/chef,sekrett/chef,zshuo/chef,andrewpsp/chef,sysbot/chef,mikedodge04/chef,docwhat/chef,renanvicente/chef,hfichter/chef,cmluciano/chef,josb/chef,jk47/chef,EasonYi/chef,renanvicente/chef,renanvicente/chef,polamjag/chef,oclaussen/chef,someara/chef,tas50/chef-1,tomdoherty/chef,clintoncwolfe/chef,erkolson/chef,gsaslis/chef,andrewpsp/chef,brettcave/chef,b002368/chef-repo,josb/chef,mio-g/chef,jordane/chef,webframp/chef,skmichaelson/chef,OpSitters/chef,andrewpsp/chef,paulmooring/chef,grubernaut/chef,youngjl1/chef,acaiafa/chef,Tensibai/chef,nathwill/chef,zuazo-forks/chef,clintoncwolfe/chef,Tensibai/chef,sometimesfood/chef,mikedodge04/chef,smurawski/chef,adamleff/chef,sanditiffin/chef,ktpan/chef-play,aaron-lane/chef,mwrock/chef,renanvicente/chef,paulmooring/chef,adamleff/chef,grubernaut/chef,permyakovsv/chef,onlyhavecans/chef,tbunnyman/chef,DeWaRs1206/chef,Kast0rTr0y/chef,polamjag/chef,criteo-forks/chef,gene1wood/chef,Igorshp/chef,martinb3/chef,b002368/chef-repo,danielsdeleo/seth,bahamas10/chef,bahamas10/chef,permyakovsv/chef,nguyen-tien-mulodo/chef,legal90/chef,zshuo/chef,gsaslis/chef,ekometti/chef,jimmymccrory/chef,patcon/chef,aaron-lane/chef,youngjl1/chef,higanworks/chef,hfichter/chef,evan2645/chef,sekrett/chef,kamaradclimber/chef,askl56/chef,criteo-forks/chef,askl56/chef,bahamas10/chef,joyent/chef,coderanger/chef,Igorshp/chef,b002368/chef-repo,malisettirammurthy/chef,nguyen-tien-mulodo/chef,nellshamrell/chef,sempervictus/chef,natewalck/chef,faspl/chef,joyent/chef,evan2645/chef,pburkholder/chef,EasonYi/chef,ducthanh/chef,cmluciano/chef,swalberg/chef,sanditiffin/chef,ducthanh/chef,gene1wood/chef,sempervictus/chef,adamleff/chef,davestarling/chef,lamont-granquist/chef,b002368/chef-repo,danielsdeleo/seth,natewalck/chef,swalberg/chef,chef/chef,Igorshp/chef,nellshamrell/chef,GabKlein/chef-merged,josb/chef,clintoncwolfe/chef,robmul/chef,coderanger/chef,MichaelPereira/chef,evan2645/chef,ShadySQL/chef-merged,kaznishi/chef,nsdavidson/chef,clintoncwolfe/chef,BackSlasher/chef,kaznishi/chef,someara/chef,nalingarg2/chef-1,youngjl1/chef,pburkholder/chef,mikedodge04/chef,higanworks/chef,jonlives/chef,MichaelPereira/chef,polamjag/chef,grubernaut/chef,sysbot/chef,sempervictus/chef,coderanger/chef,ccope/chef,GabKlein/chef-merged,mal/chef,karthikrev/chef,legal90/chef,legal90/chef,hfichter/chef,bahamas10/chef,sysbot/chef,joemiller/chef,skmichaelson/chef,EasonYi/chef,DeWaRs1206/chef,zuazo-forks/chef,jonlives/chef,nvwls/chef,strangelittlemonkey/chef,andrewpsp/chef,jkerry/chef,oclaussen/chef,tas50/chef-1,robmul/chef,grubernaut/chef,jblaine/chef,ckaushik/chef,jkerry/chef,kisoku/chef,circleback/chef,antonifs/chef,aspiers/chef,nathwill/chef,ducthanh/chef,SUSE-Cloud/chef,joemiller/chef,chef/chef,sekrett/chef,jkerry/chef,martinb3/chef,aspiers/chef,mikefaille/chef,swalberg/chef,mio-g/chef,patcon/chef,kaznishi/chef,h4ck3rm1k3/chef,sometimesfood/chef,SUSE-Cloud/chef,acaiafa/chef,erkolson/chef,tomdoherty/chef,karthikrev/chef,strangelittlemonkey/chef,ktpan/chef-play,Ppjet6/chef,kisoku/chef,acaiafa/chef,skmichaelson/chef,grubernaut/chef,malisettirammurthy/chef,erkolson/chef,nalingarg2/chef-1,higanworks/chef,someara/chef,GabKlein/chef-merged,nathwill/chef,jk47/chef,docwhat/chef,kamaradclimber/chef,adamleff/chef,joyent/chef,opsengine/chef,karthikrev/chef,jonlives/chef,nalingarg2/chef-1,criteo-forks/chef,BackSlasher/chef,davestarling/chef,mwrock/chef,nicklv/chef,sanditiffin/chef,docwhat/chef,zshuo/chef,ckaushik/chef,nsdavidson/chef,cachamber/chef,nsdavidson/chef,mattray/chef,mio-g/chef,mal/chef,faspl/chef,swalberg/chef,robmul/chef,Ppjet6/chef,ccsplit/chef,mikefaille/chef,kamaradclimber/chef,MichaelPereira/chef,strangelittlemonkey/chef,h4ck3rm1k3/chef,patcon/chef,sysbot/chef,custora/chef,ccsplit/chef,jimmymccrory/chef,joemiller/chef,3dinfluence/chef,sanditiffin/chef,mattray/chef,jkerry/chef,faspl/chef,sideci-sample/sideci-sample-chef,erkolson/chef,natewalck/chef,jordane/chef,legal90/chef,brettcave/chef,ccsplit/chef,aaron-lane/chef,cgvarela/chef,mikedodge04/chef,askl56/chef,mikefaille/chef,smurawski/chef,tomdoherty/chef,DeWaRs1206/chef,cgvarela/chef,smurawski/chef,Tensibai/chef,cgvarela/chef,juliandunn/chef,cachamber/chef,mikefaille/chef,hfichter/chef,martinisoft/chef,clintoncwolfe/chef,tbunnyman/chef,adamleff/chef,opsengine/chef,cgvarela/chef,custora/chef,onlyhavecans/chef