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>
free(iev_main_sync);
log_info("label decision engine exiting");
+
+ zlog_fini();
exit(0);
}
int argc = 0, nullfd;
pid_t pid;
- switch (pid = fork()) {
+ pid = fork();
+ switch (pid) {
case -1:
fatal("cannot fork");
case 0:
free(pkt_ptr);
log_info("ldp engine exiting");
+
+ zlog_fini();
+
exit(0);
}