Signals + minimal proposal

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Tue Apr 11 08:35:47 EDT 2006


John Meacham <john at repetae.net> writes:

> forkIO action = forkIO' action' where 
>         action' = do
>                 myThreadId >>= onExit . throwTo PleaseExit
>                 action

This would be a memory leak: even after the thread finishes,
its onExit handler would remain registered.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/


More information about the Haskell-prime mailing list