From e18ed8cc846f7b31b48f182b0cc2fc32c5b1cc82 Mon Sep 17 00:00:00 2001 From: Ronnie sahlberg Date: Thu, 12 Apr 2007 08:44:15 +1000 Subject: [PATCH] do an infinite loop calling event_loop_once() in the ctdbd parent process instead of event_loop_wait() since the latter will return and thus take down the daemon (This used to be ctdb commit 26ffd166c176deb7e2437f3ee87887f8b57435e7) --- ctdb/direct/ctdbd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ctdb/direct/ctdbd.c b/ctdb/direct/ctdbd.c index f52a282b2ba..97c349c7eee 100644 --- a/ctdb/direct/ctdbd.c +++ b/ctdb/direct/ctdbd.c @@ -129,8 +129,11 @@ int main(int argc, const char *argv[]) /* start the protocol running */ ret = ctdb_start(ctdb); - event_loop_wait(ev); - +/* event_loop_wait(ev);*/ + while (1) { + event_loop_once(ev); + } + /* shut it down */ talloc_free(ev); return 0;