mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
tevent: make sure tevent_backend_init() only runs once
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
aceeb585cb
commit
b5556a79e3
@ -112,6 +112,14 @@ void tevent_set_default_backend(const char *backend)
|
||||
*/
|
||||
static void tevent_backend_init(void)
|
||||
{
|
||||
static bool done;
|
||||
|
||||
if (done) {
|
||||
return;
|
||||
}
|
||||
|
||||
done = true;
|
||||
|
||||
tevent_select_init();
|
||||
tevent_poll_init();
|
||||
tevent_poll_mt_init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user