From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 6 17:17:54 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 485F916A4CE for ; Wed, 6 Oct 2004 17:17:54 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFC8843D31 for ; Wed, 6 Oct 2004 17:17:53 +0000 (GMT) (envelope-from rdormer@gmail.com) Received: by mproxy.gmail.com with SMTP id 74so442277rnk for ; Wed, 06 Oct 2004 10:17:53 -0700 (PDT) Received: by 10.38.165.18 with SMTP id n18mr1427836rne; Wed, 06 Oct 2004 10:17:53 -0700 (PDT) Received: by 10.38.76.31 with HTTP; Wed, 6 Oct 2004 10:17:53 -0700 (PDT) Message-ID: <3174add60410061017599f991e@mail.gmail.com> Date: Wed, 6 Oct 2004 13:17:53 -0400 From: Robert Dormer To: freebsd-hackers@freebsd.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: Subject: Re: syslog() reentrant when compiling with -pthread? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Robert Dormer List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2004 17:17:54 -0000 For what it's worth, I've used syslog to the *console* before, in a multithreaded network daemon. No problems encountered. On Wed, 6 Oct 2004 16:28:32 +0200, Marc Balmer wrote: > Hi > > I am a long time Unix developer but new with FreeBSD. I worked the last > years mostly with OpenBSD. First I am overwhelmed by the number of > mailing lists you guys provide. Second I am not sure if I picked the > right one ;-) So please direct me to the right place if this list is > only for discussion of FreeBSD system development... > > My question regarding thread-safeness of syslog(): On OpenBSD I used > syslog_r() to do thread safe logging (the software in question is a > sendmail milter, which runs multithreaded). FreeBSD does not have > these functions, but the cc man page states that compiling with > "-pthread" links in the thread safe libc_r library instead of libc. As > syslog() seems to part of libc on FreeBSD, is it safe to assume that > syslog() is indeed thread safe on FreeBSD when compiling with the > -pthread switch? > > Thanks, > Marc Balmer > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >