
23 Nov
2004
23 Nov
'04
11:39 a.m.
On 23 November 2004 13:46, Keean Schupke wrote:
Simon Marlow wrote:
Note that the GC only starts the finaliser thread. The program can still terminate before this thread has run to completion (this is one reason why we say that finalisers don't always run before program termination).
This sounds like a bug to me... surely you should wait for all forked threads to finish before the RTS exits.
No, the fact that GHC doesn't wait for all forked threads before terminating is the intended behaviour. If you want anything else, you can implement it. Cheers, Simon