AW: Re: Question about DHCPv6 timeout behavior
Harald Albrecht
Thu Mar 16 16:51:54 2017Ah, I was on 6.11.5 for some tests, good to know I didn't made a mistake in the docker and syslog setup -- still some hair left on my plate. And yes, that definitely does help me! Thank you very much for your help!-- Harald -------- Ursprüngliche Nachricht -------- Von: Roy Marples <roy@xxxxxxxxxxxx> Datum: 16.03.17 13:40 (GMT+01:00) An: Harald Albrecht <harald.albrecht@xxxxxxx>, dhcpcd-discuss@xxxxxxxxxxxx Betreff: Re: [dhcpcd-discuss] Question about DHCPv6 timeout behavior Hi Harald On 16/03/2017 11:11, Harald Albrecht wrote: > thank you for kindly offering your help! > > I'll come up with a log file later; I've now noticed that while dhcpcd > used to use the sylog call there seems to be some change after 6.7.1 > (yeah, really old, I know) that now causes the logging output of dhcpcd > to become buffered when run inside a simple docker container that uses > the console for syslog logging. With dhcpcd 6.7.1 the logging output is > synchonous, as need for debugging. Any idea what may cause this changed > behavior? I've tested both very recent dhcpd versus 6.7.1 in the same > container and they behave differently. *scratch* *scratch* Newer versions have a logger function to make the output more pretty as some platforms have really ugly (or in the case of Solaris) lack the means to report to the console via syslog. These versions logged informational stuff to stdout and errors to stderr. As you point out, stdout is buffered and it's not flushed whereas stderr should always be non buffered. Shortly after 6.11.5, I changed it to always log to stderr, like syslog. Patch here: https://dev.marples.name/rDHC780602be948eb87bd6822940403b0a182d5fd7a4 Let me know if that helps you. Roy
Archive administrator: postmaster@marples.name