summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-07-11 21:56:50 -0400
committerRich Felker <dalias@aerifal.cx>2014-07-11 21:56:50 -0400
commita64a045d1dbff2a5776f411eaf58c4a40c067e67 (patch)
tree4de7eddf20353101f5d4faeeb3a5e9107a48f6e8 /src/misc
parentb8c4cf61cbe83317d1df67dfe7877872faf0dec5 (diff)
downloadmusl-a64a045d1dbff2a5776f411eaf58c4a40c067e67.tar.gz
musl-a64a045d1dbff2a5776f411eaf58c4a40c067e67.tar.bz2
musl-a64a045d1dbff2a5776f411eaf58c4a40c067e67.tar.xz
musl-a64a045d1dbff2a5776f411eaf58c4a40c067e67.zip
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.
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/syslog.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/misc/syslog.c b/src/misc/syslog.c
index eb782984..6d2a864a 100644
--- a/src/misc/syslog.c
+++ b/src/misc/syslog.c
@@ -82,10 +82,7 @@ static void _vsyslog(int priority, const char *message, va_list ap)
int l, l2;
int hlen;
- if (log_fd < 0) {
- __openlog();
- if (log_fd < 0) return;
- }
+ if (log_fd < 0) __openlog();
if (!(priority & LOG_FACMASK)) priority |= log_facility;