Fix small race in subprocess_test
Fix small race in subprocess_test

Summary:
It is possible for subprocess_test_parent_death_helper's child to signal
the parent between the check for "caught" and the call to "pause()", and
therefore pause() blocks forever.

Test Plan: ran the test in a loop

Reviewed By: delong.j@fb.com

FB internal diff: D979872


chjp2046/folly,bowlofstew/folly,fw1121/folly,kernelim/folly,stonegithubs/folly,Orvid/folly,shaobz/folly,charsyam/folly,loverszhaokai/folly,tomhughes/folly,project-zerus/folly,loverszhaokai/folly,stonegithubs/folly,hongliangzhao/folly,brunomorishita/folly,cppfool/folly,kernelim/folly,fw1121/folly,unmeshvrije/C--,clearlinux/folly,gavioto/folly,guker/folly,bobegir/folly,clearlinux/folly,CJstar/folly,cole14/folly,unmeshvrije/C--,PPC64/folly,doctaweeks/folly,Hincoin/folly,tempbottle/folly,doctaweeks/folly,bsampath/folly,guker/folly,arg0/folly,wildinto/folly,SeanRBurton/folly,bobegir/folly,juniway/folly,unmeshvrije/C--,loversInJapan/folly,constantine001/folly,renyinew/folly,CJstar/folly,reddit/folly,PoisonBOx/folly,hongliangzhao/folly,project-zerus/folly,lifei/folly,arg0/folly,fw1121/folly,zhiweicai/folly,gavioto/folly,alexst07/folly,wildinto/folly,ykarlsbrun/folly,facebook/folly,shaobz/folly,bobegir/folly,Eagle-X/folly,facebook/folly,renyinew/folly,doctaweeks/folly,KSreeHarsha/folly,reddit/folly,tomhughes/folly,cole14/folly,PoisonBOx/folly,SeanRBurton/folly,sonnyhu/folly,Eagle-X/folly,yangjin-unique/folly,xzmagic/folly,SammyK/folly,bikong2/folly,theiver9827/folly,doctaweeks/folly,ykarlsbrun/folly,doctaweeks/folly,project-zerus/folly,ykarlsbrun/folly,xzmagic/folly,romange/folly,loversInJapan/folly,constantine001/folly,SammyK/folly,sonnyhu/folly,sonnyhu/folly,tomhughes/folly,brunomorishita/folly,clearlylin/folly,Orvid/folly,juniway/folly,Eagle-X/folly,Orvid/folly,kernelim/folly,floxard/folly,stonegithubs/folly,project-zerus/folly,clearlylin/folly,sakishum/folly,tomhughes/folly,guker/folly,bobegir/folly,zhiweicai/folly,tempbottle/folly,project-zerus/folly,sakishum/folly,nickhen/folly,cole14/folly,tempbottle/folly,PPC64/folly,upsoft/folly,Hincoin/folly,KSreeHarsha/folly,juniway/folly,raphaelamorim/folly,hongliangzhao/folly,colemancda/folly,yangjin-unique/folly,brunomorishita/folly,chjp2046/folly,SeanRBurton/folly,colemancda/folly,Eagle-X/folly,bsampath/folly,PoisonBOx/folly,unmeshvrije/C--,xzmagic/folly,loversInJapan/folly,gavioto/folly,alexst07/folly,xzmagic/folly,loversInJapan/folly,charsyam/folly,clearlylin/folly,PPC64/folly,SammyK/folly,PPC64/folly,bowlofstew/folly,constantine001/folly,CJstar/folly,chjp2046/folly,facebook/folly,shaobz/folly,bsampath/folly,bowlofstew/folly,cole14/folly,rklabs/folly,sakishum/folly,nickhen/folly,bikong2/folly,renyinew/folly,PoisonBOx/folly,juniway/folly,bikong2/folly,loverszhaokai/folly,loverszhaokai/folly,lifei/folly,PoisonBOx/folly,KSreeHarsha/folly,cppfool/folly,clearlylin/folly,constantine001/folly,facebook/folly,Hincoin/folly,clearlylin/folly,reddit/folly,arg0/folly,raphaelamorim/folly,guker/folly,stonegithubs/folly,fw1121/folly,clearlinux/folly,shaobz/folly,Orvid/folly,juniway/folly,cppfool/folly,gavioto/folly,nickhen/folly,KSreeHarsha/folly,colemancda/folly,kernelim/folly,mqeizi/folly,unmeshvrije/C--,clearlinux/folly,Orvid/folly,hongliangzhao/folly,hongliangzhao/folly,colemancda/folly,guker/folly,SeanRBurton/folly,floxard/folly,Hincoin/folly,SeanRBurton/folly,loversInJapan/folly,unmeshvrije/C--,ykarlsbrun/folly,shaobz/folly,facebook/folly,PPC64/folly,brunomorishita/folly,mqeizi/folly,leolujuyi/folly,raphaelamorim/folly,upsoft/folly,romange/folly,zhiweicai/folly,leolujuyi/folly,cppfool/folly,chjp2046/folly,renyinew/folly,renyinew/folly,nickhen/folly,zhiweicai/folly,lifei/folly,SammyK/folly,alexst07/folly,mqeizi/folly,KSreeHarsha/folly,gaoyingie/folly,reddit/folly,floxard/folly,loverszhaokai/folly,bowlofstew/folly,upsoft/folly,cppfool/folly,gavioto/folly,tomhughes/folly,kernelim/folly,sonnyhu/folly,tempbottle/folly,charsyam/folly,bsampath/folly,reddit/folly,SammyK/folly,lifei/folly,constantine001/folly,gaoyingie/folly,stonegithubs/folly,gaoyingie/folly,cole14/folly,theiver9827/folly,bowlofstew/folly,wildinto/folly,alexst07/folly,theiver9827/folly,charsyam/folly,nickhen/folly,floxard/folly,theiver9827/folly,tempbottle/folly,bobegir/folly,brunomorishita/folly,mqeizi/folly,leolujuyi/folly,rklabs/folly,mqeizi/folly,CJstar/folly,colemancda/folly,sonnyhu/folly,yangjin-unique/folly,romange/folly,bsampath/folly,upsoft/folly,bikong2/folly,wildinto/folly,floxard/folly,sakishum/folly,fw1121/folly,theiver9827/folly,gaoyingie/folly,Eagle-X/folly,sakishum/folly,upsoft/folly,bikong2/folly,gaoyingie/folly,lifei/folly,Hincoin/folly,clearlinux/folly,xzmagic/folly,rklabs/folly,alexst07/folly,yangjin-unique/folly,yangjin-unique/folly,leolujuyi/folly,raphaelamorim/folly,romange/folly,raphaelamorim/folly,arg0/folly,arg0/folly,chjp2046/folly,romange/folly,wildinto/folly,ykarlsbrun/folly,CJstar/folly,rklabs/folly,rklabs/folly,leolujuyi/folly,zhiweicai/folly