2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Add sudo_ev_dispatch(), a wrapper for ev_loop() with no flags.

Similar the dispatch function in libevent.
This commit is contained in:
Todd C. Miller
2018-02-19 11:00:10 -07:00
parent 525c6a3d94
commit 42fe0409f6
7 changed files with 21 additions and 10 deletions

View File

@@ -583,6 +583,12 @@ sudo_ev_del_v1(struct sudo_event_base *base, struct sudo_event *ev)
debug_return_int(0);
}
int
sudo_ev_dispatch_v1(struct sudo_event_base *base)
{
return sudo_ev_loop_v1(base, 0);
}
/*
* Run main event loop.
* Returns 0 on success, 1 if no events registered and -1 on error