1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

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)
This commit is contained in:
Ronnie sahlberg 2007-04-12 08:44:15 +10:00
parent 5370e677ec
commit e18ed8cc84

View File

@ -129,7 +129,10 @@ 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);