]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
use event_loop_wait instead of while(1)
authorAndrew Tridgell <tridge@samba.org>
Wed, 11 Apr 2007 12:21:43 +0000 (22:21 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 11 Apr 2007 12:21:43 +0000 (22:21 +1000)
(This used to be ctdb commit e49a6436483bffcf867fbb746ef43a5356055857)

ctdb/direct/ctdbd.c

index 53b0a6d2ebc2eba49bfd33cdde89f1b7696cd479..f52a282b2bae6becb7028618d294f031bcc76508 100644 (file)
@@ -129,11 +129,9 @@ int main(int argc, const char *argv[])
        /* start the protocol running */
        ret = ctdb_start(ctdb);
 
-       while (1) {
-               event_loop_once(ev);
-       }
+       event_loop_wait(ev);
        
        /* shut it down */
-       talloc_free(ctdb);
+       talloc_free(ev);
        return 0;
 }