1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-26 01:49:31 +03:00

use event_loop_wait instead of while(1)

(This used to be ctdb commit e49a6436483bffcf867fbb746ef43a5356055857)
This commit is contained in:
Andrew Tridgell
2007-04-11 22:21:43 +10:00
parent 2aa26b0ae7
commit 230c1a75d1

View 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;
}