Commit 1cd8830de27c30c5324c75bfb6012c969c09ca2c

Dan Rosen 2019-04-17T15:44:59

evwatch: fix race condition There was a race between event_base_loop and evwatch_new (adding a prepare/check watcher while iterating over the watcher list). Only release the mutex immediately before invoking each watcher callback, and reacquire it immediately afterwards (same as is done for normal event handlers).