parts of the recovery daemon.
Initialize all event contexts to allow nesting
/* get a new event context */
talloc_free(ctdb->ev);
ctdb->ev = event_context_init(ctdb);
+ tevent_loop_allow_nesting(ctdb->ev);
close(ctdb->daemon.sd);
ctdb->daemon.sd = -1;
#ifndef __TEVENT_H__
#define __TEVENT_H__
+#define TEVENT_DEPRECATED
+
#include <stdint.h>
#include <talloc.h>
#include <sys/time.h>
}
ctdb->ev = event_context_init(NULL);
+ tevent_loop_allow_nesting(ctdb->ev);
ctdb_set_child_logging(ctdb);
talloc_free(ctdb->ev);
ctdb->ev = event_context_init(NULL);
+ tevent_loop_allow_nesting(ctdb->ev);
syslog(LOG_ERR, "Starting SYSLOG daemon with pid:%d", (int)getpid());
fault_setup("ctdbd");
ev = event_context_init(NULL);
+ tevent_loop_allow_nesting(ev);
ctdb = ctdb_cmdline_init(ev);
DEBUG(DEBUG_ERR, ("Failed to initialize event system\n"));
exit(1);
}
+ tevent_loop_allow_nesting(ev);
for (i=0;i<ARRAY_SIZE(ctdb_commands);i++) {
if (strcmp(control, ctdb_commands[i].name) == 0) {