diff options
| author | Roy Marples <roy@marples.name> | 2020-10-30 15:16:02 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-10-30 15:16:02 +0000 |
| commit | b0525d9d351a1ea9f473f850af2ec4f19f811bc7 (patch) | |
| tree | 5b16a6072992a66a617ce831ad2eb62e4e656406 /src/dhcpcd.c | |
| parent | c963b6033c4bf32c4c72c725f05a0374d32bd370 (diff) | |
| download | dhcpcd-b0525d9d351a1ea9f473f850af2ec4f19f811bc7.tar.xz | |
log: Allow logopen to be called without logclose
logclose is meant to free resources.
On Linux this means that _log_prog is also free'd and once in the
chroot we cannot work it out again.
As such allow logopen to close what it needs to so that reopening
works.
Diffstat (limited to 'src/dhcpcd.c')
| -rw-r--r-- | src/dhcpcd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c index 169aeec1..9e508a69 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -1426,7 +1426,6 @@ dhcpcd_signal_cb(int sig, void *arg) if (ps_root_logreopen(ctx) == -1) logerr("ps_root_logreopen"); } else { - logclose(); if (logopen(ctx->logfile) == -1) logerr("logopen"); } |
