]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
event: trigger the main iteration when starting the main loop.
authorVincent Bernat <bernat@luffy.cx>
Sat, 5 Jan 2013 19:57:24 +0000 (20:57 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sat, 5 Jan 2013 19:57:24 +0000 (20:57 +0100)
Otherwise, nothing will happen until there is an interface change...

src/daemon/event.c

index 517ca00646b0a2a84b0b7f56107f9227eb225615..7bbebc98c5af07515bd9a8464fd751fc2c5d2f3c 100644 (file)
@@ -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");