Browse Source

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
(cherry picked from commit 8458652d5f)
pull/1887/head
Richard Fuchs 2 years ago
parent
commit
46a4ba0185
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      daemon/main.c

+ 3
- 0
daemon/main.c View File

@ -1089,6 +1089,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);
@ -1127,6 +1128,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;
if (kernel_setup_table(rtpe_config.kernel_table)) {


Loading…
Cancel
Save