<div class="gmail_quote">On Tue, Aug 30, 2011 at 6:49 AM, Bas van Dijk <span dir="ltr"><<a href="mailto:v.dijk.bas@gmail.com">v.dijk.bas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
As you see I also kill the thread which is running the event manager<br>
loop. However I think this is not the right way to do it because when<br>
I use the library I see the following message being continually<br>
printed after the `Ctx` is finalized:<br>
<br>
ghc: ioManagerWakeup: write: Bad file descriptor<br></blockquote><div><br></div><div>I'm afraid we don't provide a way to shut down an event manager synchronously at the moment. You'll have to submit a patch if you want to add that capability. Perhaps you could add a way to specify an "onShutdown :: IO ()" hook that would be called by the event manager thread once it shuts down.</div>
</div>