forked from Mirror/frr
ldpd: set frr_is_after_fork
in lde/ldpe
These subprocesses don't use frr_config_fork(), so frr_is_after_fork is never set. While the frr_pthread stuff isn't currently used there, set the flag anyway to avoid future headaches. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
38554d3ae6
commit
adf8924df6
|
@ -134,6 +134,8 @@ lde(void)
|
|||
log_procname = log_procnames[PROC_LDE_ENGINE];
|
||||
|
||||
master = frr_init();
|
||||
/* no frr_config_fork() here, allow frr_pthread to create threads */
|
||||
frr_is_after_fork = true;
|
||||
|
||||
/* setup signal handler */
|
||||
signal_init(master, array_size(lde_signals), lde_signals);
|
||||
|
|
|
@ -111,6 +111,8 @@ ldpe(void)
|
|||
log_procname = log_procnames[ldpd_process];
|
||||
|
||||
master = frr_init();
|
||||
/* no frr_config_fork() here, allow frr_pthread to create threads */
|
||||
frr_is_after_fork = true;
|
||||
|
||||
/* setup signal handler */
|
||||
signal_init(master, array_size(ldpe_signals), ldpe_signals);
|
||||
|
|
Loading…
Reference in a new issue