MT#55283 fork to background before init HTTP/WS

HTTP/WS init creates worker threads, which would be terminated by a fork
to background. Reverse the order.

Closes #1896
Possibly also relevant to #1895

Change-Id: I30b61e07ad3bed41b6b241e8943ed479277c1474
rfuchs/gh1896
Richard Fuchs 11 months ago
parent d559a537c6
commit dd04af1163

@ -1471,12 +1471,12 @@ static void create_everything(void) {
rtpe_redis_write = rtpe_redis;
}
if (websocket_init())
die("Failed to init websocket listener");
daemonize();
wpidfile();
if (websocket_init())
die("Failed to init websocket listener");
homer_sender_init(&rtpe_config.homer_ep, rtpe_config.homer_protocol, rtpe_config.homer_id);
rtcp_init(); // must come after Homer init

Loading…
Cancel
Save