Fix bug causing polling instead of blocking in the non-threaded RTS (#5773)
authorSimon Marlow <marlowsd@gmail.com>
Mon, 16 Jan 2012 09:49:24 +0000 (09:49 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 16 Jan 2012 13:27:57 +0000 (13:27 +0000)
commitfac8ecbbafde17dd92439c41747223c43e9d2b80
treec3b5a0da07c8e738ead81983a7ac42bb29d715e5
parenta9e17cc2fdadf34b6f2bdd1e8889259327d31578
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.
rts/posix/Select.c