8 Jul
2007
8 Jul
'07
12:28 a.m.
On 7/7/07, Lukas Mai <l.mai@web.de> wrote:
If I understand this correctly, spin should be written as:
spin = do block $ do (t, _) <- accept s unblock (forkIO $ doStuff t) `finally` sClose t spin
I think the `finally` portion should be done in the forked process context. Otherwise once the process is forked, the socket gets closed by the parent process. Something more along the lines of: unblock (forkIO $ doStuff t `finally` sClose t) -- Rich JID: rich@neswold.homeunix.net AIM: rnezzy