Fix off-by-one error in the IO manager
Fix off-by-one error in the IO manager

The last enabled event manager was being needlessly restarted after
increasing the number of capabilities at runtime.

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