From: Ronnie sahlberg Date: Wed, 11 Apr 2007 22:44:15 +0000 (+1000) Subject: do an infinite loop calling event_loop_once() in the ctdbd parent process instead... X-Git-Tag: tevent-0.9.20~348^2~2933^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e18ed8cc846f7b31b48f182b0cc2fc32c5b1cc82;p=thirdparty%2Fsamba.git 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) --- 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;