Rev 97: use event_loop_wait instead of while(1) in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Wed Apr 11 12:21:43 GMT 2007


------------------------------------------------------------
revno: 97
revision-id: tridge at samba.org-20070411122143-e0d0192ca901c6f9
parent: tridge at samba.org-20070411121946-c5d80408a49dda5b
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Wed 2007-04-11 22:21:43 +1000
message:
  use event_loop_wait instead of while(1)
modified:
  direct/ctdbd.c                 ctdbd.c-20070411085044-dqmhr6mfeexnyt4m-1
=== modified file 'direct/ctdbd.c'
--- a/direct/ctdbd.c	2007-04-11 12:19:46 +0000
+++ b/direct/ctdbd.c	2007-04-11 12:21:43 +0000
@@ -129,11 +129,9 @@
 	/* 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;
 }



More information about the samba-cvs mailing list