closeFdWith closes fd after unregistering the fd with the backend.
closeFdWith closes fd after unregistering the fd with the backend.

In closeFdWith moved closing of fd after calling closeFd_ on each capabilities manager, ensuring that the fd is still valid when the fd is deregistered with the backend.

vikraman/ghc,da-x/ghc,green-haskell/ghc,acowley/ghc,ezyang/ghc,AlexanderPankiv/ghc,christiaanb/ghc,siddhanathan/ghc,AlexanderPankiv/ghc,oldmanmike/ghc,olsner/ghc,fmthoma/ghc,acowley/ghc,tjakway/ghcjvm,TomMD/ghc,forked-upstream-packages-for-ghcjs/ghc,sdiehl/ghc,bitemyapp/ghc,urbanslug/ghc,nathyong/microghc-ghc,nkaretnikov/ghc,sgillespie/ghc,mettekou/ghc,ghc-android/ghc,lukexi/ghc,fmthoma/ghc,shlevy/ghc,vTurbine/ghc,gridaphobe/ghc,sgillespie/ghc,mcschroeder/ghc,spacekitteh/smcghc,urbanslug/ghc,fmthoma/ghc,nkaretnikov/ghc,acowley/ghc,forked-upstream-packages-for-ghcjs/ghc,oldmanmike/ghc,gridaphobe/ghc,snoyberg/ghc,gcampax/ghc,ryantm/ghc,holzensp/ghc,vikraman/ghc,jstolarek/ghc,ghc-android/ghc,nkaretnikov/ghc,nushio3/ghc,urbanslug/ghc,mettekou/ghc,sgillespie/ghc,GaloisInc/halvm-ghc,mettekou/ghc,sdiehl/ghc,oldmanmike/ghc,siddhanathan/ghc,TomMD/ghc,christiaanb/ghc,wxwxwwxxx/ghc,olsner/ghc,siddhanathan/ghc,christiaanb/ghc,frantisekfarka/ghc-dsi,wxwxwwxxx/ghc,nathyong/microghc-ghc,snoyberg/ghc,nathyong/microghc-ghc,ghc-android/ghc,nathyong/microghc-ghc,TomMD/ghc,forked-upstream-packages-for-ghcjs/ghc,shlevy/ghc,frantisekfarka/ghc-dsi,ml9951/ghc,holzensp/ghc,mettekou/ghc,ml9951/ghc,anton-dessiatov/ghc,AlexanderPankiv/ghc,mettekou/ghc,anton-dessiatov/ghc,mcschroeder/ghc,gridaphobe/ghc,spacekitteh/smcghc,jstolarek/ghc,spacekitteh/smcghc,anton-dessiatov/ghc,ezyang/ghc,jstolarek/ghc,holzensp/ghc,acowley/ghc,vTurbine/ghc,GaloisInc/halvm-ghc,nushio3/ghc,ml9951/ghc,frantisekfarka/ghc-dsi,GaloisInc/halvm-ghc,wxwxwwxxx/ghc,oldmanmike/ghc,vikraman/ghc,acowley/ghc,acowley/ghc,nkaretnikov/ghc,nathyong/microghc-ghc,AlexanderPankiv/ghc,gcampax/ghc,gridaphobe/ghc,green-haskell/ghc,mcschroeder/ghc,shlevy/ghc,AlexanderPankiv/ghc,christiaanb/ghc,tibbe/ghc,sdiehl/ghc,tjakway/ghcjvm,TomMD/ghc,snoyberg/ghc,tjakway/ghcjvm,fmthoma/ghc,lukexi/ghc,urbanslug/ghc,siddhanathan/ghc,forked-upstream-packages-for-ghcjs/ghc,bitemyapp/ghc,acowley/ghc,mettekou/ghc,ryantm/ghc,vikraman/ghc,ghc-android/ghc,da-x/ghc,ezyang/ghc,mcschroeder/ghc,sdiehl/ghc,elieux/ghc,ezyang/ghc,ryantm/ghc,wxwxwwxxx/ghc,elieux/ghc,ml9951/ghc,TomMD/ghc,nushio3/ghc,vikraman/ghc,oldmanmike/ghc,shlevy/ghc,nathyong/microghc-ghc,sgillespie/ghc,gcampax/ghc,nushio3/ghc,ml9951/ghc,vTurbine/ghc,siddhanathan/ghc,wxwxwwxxx/ghc,sgillespie/ghc,christiaanb/ghc,gcampax/ghc,siddhanathan/ghc,ghc-android/ghc,mettekou/ghc,fmthoma/ghc,anton-dessiatov/ghc,gcampax/ghc,holzensp/ghc,GaloisInc/halvm-ghc,mfine/ghc,christiaanb/ghc,da-x/ghc,nkaretnikov/ghc,tibbe/ghc,sgillespie/ghc,GaloisInc/halvm-ghc,mcschroeder/ghc,jstolarek/ghc,TomMD/ghc,ezyang/ghc,fmthoma/ghc,lukexi/ghc,sgillespie/ghc,tjakway/ghcjvm,ghc-android/ghc,vTurbine/ghc,olsner/ghc,fmthoma/ghc,elieux/ghc,green-haskell/ghc,urbanslug/ghc,bitemyapp/ghc,nkaretnikov/ghc,mfine/ghc,nushio3/ghc,sdiehl/ghc,gcampax/ghc,vTurbine/ghc,vTurbine/ghc,snoyberg/ghc,elieux/ghc,lukexi/ghc,da-x/ghc,forked-upstream-packages-for-ghcjs/ghc,vTurbine/ghc,lukexi/ghc,tibbe/ghc,gcampax/ghc,mfine/ghc,wxwxwwxxx/ghc,anton-dessiatov/ghc,sdiehl/ghc,AlexanderPankiv/ghc,frantisekfarka/ghc-dsi,mfine/ghc,elieux/ghc,ryantm/ghc,mcschroeder/ghc,nushio3/ghc,oldmanmike/ghc,olsner/ghc,wxwxwwxxx/ghc,ezyang/ghc,elieux/ghc,mcschroeder/ghc,snoyberg/ghc,ryantm/ghc,tjakway/ghcjvm,ml9951/ghc,christiaanb/ghc,vikraman/ghc,nushio3/ghc,anton-dessiatov/ghc,nathyong/microghc-ghc,vikraman/ghc,bitemyapp/ghc,TomMD/ghc,sdiehl/ghc,nkaretnikov/ghc,gridaphobe/ghc,gridaphobe/ghc,bitemyapp/ghc,green-haskell/ghc,gridaphobe/ghc,olsner/ghc,GaloisInc/halvm-ghc,GaloisInc/halvm-ghc,jstolarek/ghc,forked-upstream-packages-for-ghcjs/ghc,spacekitteh/smcghc,holzensp/ghc,ezyang/ghc,da-x/ghc,green-haskell/ghc,spacekitteh/smcghc,ghc-android/ghc,elieux/ghc,anton-dessiatov/ghc,mfine/ghc,urbanslug/ghc,siddhanathan/ghc,ml9951/ghc,da-x/ghc,shlevy/ghc,tjakway/ghcjvm,shlevy/ghc,oldmanmike/ghc,ml9951/ghc,olsner/ghc,mfine/ghc,frantisekfarka/ghc-dsi,da-x/ghc,tibbe/ghc,olsner/ghc,tibbe/ghc,urbanslug/ghc,AlexanderPankiv/ghc,mfine/ghc,shlevy/ghc,snoyberg/ghc,forked-upstream-packages-for-ghcjs/ghc,snoyberg/ghc,tjakway/ghcjvm