Date: Mon, 5 Jan 2015 15:39:14 +0200 From: Dima Krasner <dima@...akrasner.com> To: musl@...ts.openwall.com Subject: Possible bug in openlog() Hi, I think I found a bug in openlog() - it's racy. If syslogd is started after openlog() is called, there's a small chance that the socket will remain open, while connect() failed. Then, syslog() does not call openlog() again, because it only checks whether the socket file descriptor is valid. Therefore, all syslog() messages are dropped silently and nothing gets logged. I attached a fix. Can you merge it or provide feedback, please? Thank you, Dima -- Dima Krasner, dimakrasner.com View attachment "musl-syslog-retry.patch" of type "text/x-diff" (602 bytes) Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.