
7 Jul
2007
7 Jul
'07
12:28 p.m.
On 7/7/07, Lukas Mai
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