From: Vincent Bernat Date: Sat, 5 Jan 2013 19:57:24 +0000 (+0100) Subject: event: trigger the main iteration when starting the main loop. X-Git-Tag: 0.7.0~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=86b5c6fb48a419c3ad91f5e760669f3a24b3a49d;p=thirdparty%2Flldpd.git event: trigger the main iteration when starting the main loop. Otherwise, nothing will happen until there is an interface change... --- diff --git a/src/daemon/event.c b/src/daemon/event.c index 517ca006..7bbebc98 100644 --- a/src/daemon/event.c +++ b/src/daemon/event.c @@ -446,7 +446,7 @@ levent_init(struct lldpd *cfg) levent_update_and_send, cfg))) fatalx("unable to setup main timer"); - levent_send_now(cfg); + event_active(cfg->g_main_loop, EV_TIMEOUT, 1); /* Setup unix socket */ log_debug("event", "register Unix socket");