Fix bug causing polling instead of blocking in the non-threaded RTS (#5773)
Fix bug causing polling instead of blocking in the non-threaded RTS (#5773)

This was a regression introduced accidentally in
6b1098511aaabd2c9503ee7be6da1944466f9cb4.  We were previously passing
a large time value to select() to simulate blocking, and this broke
due to a change from unsigned to signed arithmetic.  I've refactored
it to be less fragile now - we just pass NULL as the timeval parameter
to select(), which is the correct way to do blocking.

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