Add the ability to set a default event base, to be used by plugins

which don't have access to the event base.
This commit is contained in:
Todd C. Miller
2017-07-13 13:59:31 -06:00
parent 9a76678317
commit d2a0bfbb12
6 changed files with 40 additions and 4 deletions

View File

@@ -486,6 +486,11 @@ fill_exec_closure_monitor(struct monitor_closure *mc,
sudo_fatal(NULL);
if (sudo_ev_add(mc->evbase, mc->sigchld_event, NULL, false) == -1)
sudo_fatal(U_("unable to add event to queue"));
/* Clear the default event base. */
sudo_ev_base_setdef(NULL);
debug_return;
}
/*