Bug in touchForeignPtr?
Simon Marlow
simonmar at microsoft.com
Tue Nov 23 11:39:47 EST 2004
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
More information about the Glasgow-haskell-users
mailing list