Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Oct 2004 12:40:24 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Marc Balmer <marc@msys.ch>
Cc:        Dan Nelson <dnelson@allantgroup.com>
Subject:   Re: syslog() reentrant when compiling with -pthread?
Message-ID:  <20041007094024.GA916@orion.daedalusnetworks.priv>
In-Reply-To: <A3E829CE-1820-11D9-AB94-003065F9345A@msys.ch>
References:  <FFEC3743-17A3-11D9-BB63-0003938168B2@msys.ch> <20041006144800.GB87201@dan.emsphone.com> <A3E829CE-1820-11D9-AB94-003065F9345A@msys.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-10-07 07:20, Marc Balmer <marc@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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041007094024.GA916>