The alternative is for the close() to happen in the "finalize
callback" that happens from the main thread in the new 0., and make
sure that happens after the event_del calls have had their effect.
Any interest in helping to track this down? :) ÂOne thing that might
help is a little test program that tries to provoke this bug. ÂBeyond
that, improving the finalize-callback code in the master branch would
also be of benefit.