diff options
author | Mark Stapp <mjs@voltanet.io> | 2020-06-17 16:00:03 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2020-06-22 13:35:20 +0200 |
commit | b12a63f120f11742bfea00215bc1a68cfb738ccf (patch) | |
tree | 6567d10b04e13c77b9ffc8a1b95369204e5463d1 /ldpd/ldpd.c | |
parent | Merge pull request #6617 from Niral-Networks/niral_dev_isis_vrf (diff) | |
download | frr-b12a63f120f11742bfea00215bc1a68cfb738ccf.tar.xz frr-b12a63f120f11742bfea00215bc1a68cfb738ccf.zip |
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>
Diffstat (limited to 'ldpd/ldpd.c')
-rw-r--r-- | ldpd/ldpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ldpd/ldpd.c b/ldpd/ldpd.c index 56734a4f7..e3b6f4dfc 100644 --- a/ldpd/ldpd.c +++ b/ldpd/ldpd.c @@ -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: |