mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 08:50:26 +00:00
ldpd: clean up temp zlog files
Clean up the temp zlog dirs in /var/tmp/frr/ that the ldpd child processes were leaving. The child processes do a non- standard lib init/deinit, so they need to explicitly deinit the zlog module. Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
8803809f0b
commit
b12a63f120
@ -206,6 +206,8 @@ lde_shutdown(void)
|
||||
free(iev_main_sync);
|
||||
|
||||
log_info("label decision engine exiting");
|
||||
|
||||
zlog_fini();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
@ -495,7 +495,8 @@ start_child(enum ldpd_process p, char *argv0, int fd_async, int fd_sync)
|
||||
int argc = 0, nullfd;
|
||||
pid_t pid;
|
||||
|
||||
switch (pid = fork()) {
|
||||
pid = fork();
|
||||
switch (pid) {
|
||||
case -1:
|
||||
fatal("cannot fork");
|
||||
case 0:
|
||||
|
@ -235,6 +235,9 @@ ldpe_shutdown(void)
|
||||
free(pkt_ptr);
|
||||
|
||||
log_info("ldp engine exiting");
|
||||
|
||||
zlog_fini();
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user