[Haskell-cafe] interrupting an accept()ing thread

Thomas Conway drtomc at gmail.com
Thu Jul 5 22:15:03 EDT 2007

On 7/6/07, Lukas Mai <l.mai at web.de> wrote:
> I don't see how this solves the problem. AFAICS acceptLoop never returns
> and sok is never closed. On the other hand, my program doesn't need a
> liveOpCount because the subthreads take care of themselves. It's just the
> accept loop I need to break somehow.

Well, it works because the sub-thread dies when the program exits, so
the socket gets closed then.

Dr Thomas Conway
drtomc at gmail.com

Silence is the perfectest herald of joy:
I were but little happy, if I could say how much.

More information about the Haskell-Cafe mailing list