[issue12168] SysLogHandler incorrectly appends \000 to messages

Petri Lehtinen report at bugs.python.org
Wed May 25 18:06:57 CEST 2011


Petri Lehtinen <petri at digip.org> added the comment:

Vinay Sajip wrote:
> @Petri: It's great that it worked for you, but IIRC the syslog module has had 
> thread-safety issues at least on some platforms, which is why it's not used in 
> the SysLogHandler implementation (disclaimer: this was a while ago, I don't know 
> if the syslog module is thread-safe now - I believe the thread-safety issues 
> were in the underlying C APIs).

Ah, I was not aware of thread safety issues. A quick search revealed
that there has been a non-standard syslog_r() function that's thread
safe, but nowadays POSIX requires syslog() to be thread safe, too.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12168>
_______________________________________


More information about the Python-bugs-list mailing list