From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 13 13:53:03 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 36EE616A41C for ; Wed, 13 Jul 2005 13:53:03 +0000 (GMT) (envelope-from lists@nbux.com) Received: from smtp9.wanadoo.fr (smtp9.wanadoo.fr [193.252.22.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DD8843D53 for ; Wed, 13 Jul 2005 13:53:02 +0000 (GMT) (envelope-from lists@nbux.com) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0909.wanadoo.fr (SMTP Server) with ESMTP id CFFC02400136 for ; Wed, 13 Jul 2005 15:53:00 +0200 (CEST) Received: from daneel.nbux.com (LNeuilly-152-22-15-131.w82-127.abo.wanadoo.fr [82.127.94.131]) by mwinf0909.wanadoo.fr (SMTP Server) with ESMTP id A11322400135; Wed, 13 Jul 2005 15:53:00 +0200 (CEST) X-ME-UUID: 20050713135300660.A11322400135@mwinf0909.wanadoo.fr Received: from webmail.nbux.com (daneel.nbux.com [192.168.42.2]) by daneel.nbux.com (Postfix) with ESMTP id 7624E167DD2; Wed, 13 Jul 2005 15:52:53 +0200 (CEST) Received: from 194.51.215.62 (SquirrelMail authenticated user lists) by webmail.nbux.com with HTTP; Wed, 13 Jul 2005 15:52:53 +0200 (CEST) Message-ID: <39921.194.51.215.62.1121262773.squirrel@webmail.nbux.com> In-Reply-To: <20050713124658.GU39292@obiwan.tataz.chchile.org> References: <61087.192.168.42.2.1121196788.squirrel@webmail.nbux.com> <20050713095059.GS39292@obiwan.tataz.chchile.org> <44776.194.51.215.62.1121257035.squirrel@webmail.nbux.com> <20050713124658.GU39292@obiwan.tataz.chchile.org> Date: Wed, 13 Jul 2005 15:52:53 +0200 (CEST) From: "Christophe Yayon" To: "Jeremie Le Hen" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at nbux.com Cc: freebsd-hackers@freebsd.org, Christophe Yayon Subject: Re: nagios and pthreads X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2005 13:53:03 -0000 Thanks Jeremie, I will asked nagios developpers how to use libpthread, if there is a configure option when compiling... Bye. > Christophe, > >> Yes but if i understand, there is a bug in libc_r on FreeBSD ? > > libc_r indeed has some kind of bug, I don't know. > > Anyhow, you are using RELENG_5, so you should be using native threads > with either libpthread (libkse, M:N) or libthr (1:1). > > I don't know what Nagios does just after fork(2), it would be worth to > check. It appears that fork(2)ing without exec(2)ing or _exit(2)ing > in a pthreaded program is not a "valid" behaviour, regarding to > SUSv3 [1]. I don't want to avoid admitting there is a problem in > FreeBSD threading library, I don't know how other OSes handle this, > but Nagios folks should really avoid doing what is explicitely > dissuaded in SUSv3. > > For now, it doesn't resolve your problem unfortunately. > > [1] > http://www.opengroup.org/onlinepubs/009695399/functions/pthread_atfork.html > (look at the "RATIONALE" section) > -- > Jeremie Le Hen > < jeremie at le-hen dot org >< ttz at chchile dot org > >