From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 7 09:40:40 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67DD516A4CE for ; Thu, 7 Oct 2004 09:40:40 +0000 (GMT) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id E244043D48 for ; Thu, 7 Oct 2004 09:40:35 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from orion.daedalusnetworks.priv (host5.bedc.ondsl.gr [62.103.39.229])i979ePiY007781; Thu, 7 Oct 2004 12:40:25 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) i979eO9V055434; Thu, 7 Oct 2004 12:40:24 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost)i979eOUk055425; Thu, 7 Oct 2004 12:40:24 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 7 Oct 2004 12:40:24 +0300 From: Giorgos Keramidas To: Marc Balmer Message-ID: <20041007094024.GA916@orion.daedalusnetworks.priv> References: <20041006144800.GB87201@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Mailman-Approved-At: Thu, 07 Oct 2004 12:07:22 +0000 cc: freebsd-hackers@FreeBSD.org cc: Dan Nelson Subject: Re: syslog() reentrant when compiling with -pthread? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2004 09:40:40 -0000 On 2004-10-07 07:20, Marc Balmer 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?