MT#55283 fix regression from fe9d1f5ae3

poller_new used to have the side effect of initialising rtpe_now.
Restore this side effect explicitly in the startup code, so that timers
are launched with the correst start time instead of zero.

Change-Id: I590061a9665b52c4aed00c06dc330d2a226c73d3
pull/1802/head
Richard Fuchs 1 year ago
parent 2f0b45bcf6
commit 8458652d5f

@ -1185,6 +1185,7 @@ static void early_init(void) {
}
static void init_everything(void) {
gettimeofday(&rtpe_now, NULL);
log_init(rtpe_common_config_ptr->log_name);
log_format(rtpe_config.log_format);
recording_fs_init(rtpe_config.spooldir, rtpe_config.rec_method, rtpe_config.rec_format);
@ -1223,6 +1224,8 @@ static void init_everything(void) {
static void create_everything(void) {
struct timeval tmp_tv;
gettimeofday(&rtpe_now, NULL);
if (rtpe_config.kernel_table < 0)
goto no_kernel;
#ifndef WITHOUT_NFTABLES

Loading…
Cancel
Save