[LEDE-DEV] [PATCH 2/3] procd: Don't use syslog before its initialization

Michal Sojka sojkam1 at fel.cvut.cz
Sat Mar 11 17:09:41 PST 2017


On Sat, Mar 11 2017, Michal Sojka wrote:
> On Sat, Mar 11 2017, John Crispin wrote:
>> On 11/03/17 01:48, Michal Sojka wrote:
>>> When procd starts a rcS script, it captures its stdout and stderr and
>>> logs them to syslog. It could happen (and I don't know exactly why),
>>> that a rcS scripts produces some output before openlog() is called in
>>> procd. The result is that all subsequent logs from procd are logged
>>> with ident and PID of some other service that happens to be started at
>>> that time. I also have no clue why this is happening (bug in musl?),
>>> but it is very confusing when one tries to debug boot problems.
>>
>> is there a way to reliably reproduce this issue ?
>
> I can reproduce it reliably with handful of custom packages. I'll try to
> prepare a more simpler setup where this can be seen.

I've figured out what exactly happened. The fix is correct, but the
commit message can be improved. I'll send v2 patch.

-Michal



More information about the Lede-dev mailing list