summaryrefslogtreecommitdiffstats
path: root/src/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-10-30 22:18:57 +0000
committerRoy Marples <roy@marples.name>2020-10-30 22:18:57 +0000
commit88702bf5b60ef29c9cf14d3f06077b18c1e7c3b3 (patch)
tree98965abaeaa5056b375069a6966dc1a6e967cc67 /src/dhcpcd.c
parent734031c7caec9f6a62a2b42aabd960cc13816d6d (diff)
downloaddhcpcd-88702bf5b60ef29c9cf14d3f06077b18c1e7c3b3.tar.xz
Fix compile without various defines
Diffstat (limited to 'src/dhcpcd.c')
-rw-r--r--src/dhcpcd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c
index 9e508a69..f106abd9 100644
--- a/src/dhcpcd.c
+++ b/src/dhcpcd.c
@@ -1422,13 +1422,15 @@ dhcpcd_signal_cb(int sig, void *arg)
return;
case SIGUSR2:
loginfox(sigmsg, "SIGUSR2", "reopening log");
+#ifdef PRIVSEP
if (IN_PRIVSEP(ctx)) {
if (ps_root_logreopen(ctx) == -1)
logerr("ps_root_logreopen");
- } else {
- if (logopen(ctx->logfile) == -1)
- logerr("logopen");
+ return;
}
+#endif
+ if (logopen(ctx->logfile) == -1)
+ logerr("logopen");
return;
case SIGCHLD:
while (waitpid(-1, NULL, WNOHANG) > 0)