syslog() reentrant when compiling with -pthread?

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Oct 7 02:40:40 PDT 2004


On 2004-10-07 07:20, Marc Balmer <marc at msys.ch> wrote:
>
> 1) openlog() must be called before any threads that use syslog() are
> started.
> 2) The first argument to openlog() must not be NULL.
> 3) The "%m" Format String must not be used in syslog() calls.

Can (3) this be solved by changing all the calls to strerror() with
equivalent calls to strerror_r() in the syslog() implementation?



More information about the freebsd-hackers mailing list