chiark / gitweb /
log: never block on syslog in PID 1
authorMichal Schmidt <mschmidt@redhat.com>
Sun, 18 Dec 2011 13:57:54 +0000 (14:57 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Mon, 19 Dec 2011 23:23:51 +0000 (00:23 +0100)
commit8f7f7a1bd3a26f501b2d6546cce1c669b59dcc87
tree38ad351ff051cae014927aeea9f36acd773affd0
parent9721b19968dd80ad187d03da214a2a8d28ead3ad
log: never block on syslog in PID 1

Use a non-blocking syslog socket if logging from PID 1.
If sendmsg fails with EAGAIN, fall back to kmsg or console only for the
current message. Next message will try syslog again.
src/log.c