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
_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to