FIX #1177, partially at least.
authorSimon Marlow <simonmar@microsoft.com>
Wed, 25 Jul 2007 13:55:04 +0000 (13:55 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 25 Jul 2007 13:55:04 +0000 (13:55 +0000)
commiteb5791fe867f6441d270344298678f45ed4a75e4
tree5c3618696d1eba5c5b1ca23dbd6bce112752ac4f
parent681aad99cb29ce54f72ec2a916fb1aab0fa0fabb
FIX #1177, partially at least.
Now we don't wait for outstanding IO requests when shutting down at
program exit time, but we still wait when shutting down a DLL (via
hs_exit()).  There ought to be a better way to do this, but
terminating the threads forcibly is not a good idea (it never is: the
thread might be holding a mutex when it dies, for example).

I plan to add some docs to the user guide to describe how to shut
down a DLL properly.
rts/RtsStartup.c
rts/win32/AsyncIO.c
rts/win32/AsyncIO.h
rts/win32/IOManager.c
rts/win32/IOManager.h