<div class="gmail_quote">On Tue, Aug 30, 2011 at 6:49 AM, Bas van Dijk <span dir="ltr">&lt;<a href="mailto:v.dijk.bas@gmail.com">v.dijk.bas@gmail.com</a>&gt;</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&#39;m afraid we don&#39;t provide a way to shut down an event manager synchronously at the moment. You&#39;ll have to submit a patch if you want to add that capability.  Perhaps you could add a way to specify an &quot;onShutdown :: IO ()&quot; hook that would be called by the event manager thread once it shuts down.</div>
</div>