mirror of git://git.musl-libc.org/musl
suppress early syslog return when log socket cannot be opened
this behavior is no longer valid in general, and was never necessary. if the LOG_PERROR option is set, output to stderr could still succeed. also, when the LOG_CONS option is added, it will need syslog to proceed even if opening the log socket fails.
This commit is contained in:
parent
b8c4cf61cb
commit
a64a045d1d
|
@ -82,10 +82,7 @@ static void _vsyslog(int priority, const char *message, va_list ap)
|
||||||
int l, l2;
|
int l, l2;
|
||||||
int hlen;
|
int hlen;
|
||||||
|
|
||||||
if (log_fd < 0) {
|
if (log_fd < 0) __openlog();
|
||||||
__openlog();
|
|
||||||
if (log_fd < 0) return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!(priority & LOG_FACMASK)) priority |= log_facility;
|
if (!(priority & LOG_FACMASK)) priority |= log_facility;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue