From: Andrew Tridgell Date: Wed, 11 Apr 2007 12:21:43 +0000 (+1000) Subject: use event_loop_wait instead of while(1) X-Git-Tag: tevent-0.9.20~348^2~2934 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=230c1a75d1f3f642e8569f4e99beab723da20f25;p=thirdparty%2Fsamba.git use event_loop_wait instead of while(1) (This used to be ctdb commit e49a6436483bffcf867fbb746ef43a5356055857) --- diff --git a/ctdb/direct/ctdbd.c b/ctdb/direct/ctdbd.c index 53b0a6d2ebc..f52a282b2ba 100644 --- a/ctdb/direct/ctdbd.c +++ b/ctdb/direct/ctdbd.c @@ -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; }