mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-21 12:24:29 +02:00
Fix Windows signal handling thread immediately exiting.
This commit is contained in:
parent
d10912d2ef
commit
517ea6072f
|
|
@ -561,7 +561,6 @@ int main(int argc, char *argv[])
|
|||
return rc;
|
||||
}
|
||||
|
||||
signal__setup();
|
||||
|
||||
#ifdef WITH_BRIDGE
|
||||
bridge__start_all();
|
||||
|
|
@ -569,12 +568,14 @@ int main(int argc, char *argv[])
|
|||
|
||||
broker_control__init();
|
||||
|
||||
g_run = 1;
|
||||
signal__setup();
|
||||
|
||||
log__printf(NULL, MOSQ_LOG_INFO, "mosquitto version %s running", VERSION);
|
||||
#ifdef WITH_SYSTEMD
|
||||
sd_notify(0, "READY=1");
|
||||
#endif
|
||||
|
||||
g_run = 1;
|
||||
rc = mosquitto_main_loop(g_listensock, g_listensock_count);
|
||||
|
||||
post_shutdown_cleanup();
|
||||
|
|
|
|||
Loading…
Reference in a new issue