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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user