]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
do an infinite loop calling event_loop_once() in the ctdbd parent process instead...
authorRonnie sahlberg <ronniesahlberg@gmail.com>
Wed, 11 Apr 2007 22:44:15 +0000 (08:44 +1000)
committerRonnie sahlberg <ronniesahlberg@gmail.com>
Wed, 11 Apr 2007 22:44:15 +0000 (08:44 +1000)
(This used to be ctdb commit 26ffd166c176deb7e2437f3ee87887f8b57435e7)

ctdb/direct/ctdbd.c

index f52a282b2bae6becb7028618d294f031bcc76508..97c349c7eeefdc8f35e052ff2bd6d1531952e382 100644 (file)
@@ -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;