dhcpcd-discuss

Re: dhcpcd-9.0.0 released

Roy Marples

Wed Apr 08 16:01:33 2020

On 08/04/2020 08:44, Julian Wollrath wrote:
if I just call dhcpcd by hand I also get output in the console and
in the syslog. Only if it gets called indirectly as described I do
not get anytheng in the syslog (and of course not in the console
but that it expected).

Aha, so this *only* happens from ifupdown?
If you add the debug command to /etc/dhcpcd.conf and use ifupdown
do you get anything in syslog?

yes, than I get the additional debug messages and the regular
messages in the syslog, sorry for not stating it clear enough
before.

Is this with privsep enabled? Could you try disabling and seeing if
that helps? Just to try and isolate the issue.

yes, it is with privsep enabled. With privsep disabled I see the
messages in the syslog.

At a rough guess, syslog might be started after privsep then.
What system logger do you use?

Does this patch help any?


diff --git a/src/logerr.c b/src/logerr.c
index 170b529d..51a8113b 100644
--- a/src/logerr.c
+++ b/src/logerr.c
@@ -371,7 +371,7 @@ logopen(const char *path)

                if (ctx->log_opts & LOGERR_LOG_PID)
                        opts |= LOG_PID;
-               openlog(NULL, opts, LOGERR_SYSLOG_FACILITY);
+               openlog(NULL, opts | LOG_NDELAY, LOGERR_SYSLOG_FACILITY);
                return 1;
        }


Follow-Ups:
Re: dhcpcd-9.0.0 releasedJulian Wollrath
References:
dhcpcd-9.0.0 releasedRoy Marples
Re: dhcpcd-9.0.0 releasedJulian Wollrath
Re: dhcpcd-9.0.0 releasedRoy Marples
Re: dhcpcd-9.0.0 releasedJulian Wollrath
Re: dhcpcd-9.0.0 releasedRoy Marples
Re: dhcpcd-9.0.0 releasedJulian Wollrath
Archive administrator: postmaster@marples.name