Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Aug 2005 09:45:22 -0400 (EDT)
From:      Daniel Eischen <deischen@freebsd.org>
To:        Christophe Yayon <lists@nbux.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: nagios and freebsd threads issue : help please ...
Message-ID:  <Pine.GSO.4.43.0508210944001.22901-100000@sea.ntplx.net>
In-Reply-To: <43083131.4010407@nbux.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 21 Aug 2005, Christophe Yayon wrote:

> Hi again,
>
> I just upgraded again to FreeBSD5.4-Stable of August 20 and, i just
> killed a nagios loop process which consume 100% of CPU...
> The problem seems to persist again...
>
> How do think about this ?
> Thanks in advance.

Go ask the nagios guys.  If they are doing things after a fork()
from a threaded application that are not allowed by POSIX, then
they need to address it.

> >> They choose to quote a weak reference to the actual requirement.
> >> The standard says (in the fork() section):
> >>
> >>   A process shall be created with a single thread.  If a
> >>   multi-threaded process calls fork(), the new process shall
> >>   contain a replica of the calling thread and its entire address
> >>   space, possibly including the states of mutexes and other
> >>   resources.  Consequently, to avoid errors, the child process may
> >>   only execute async-signal-safe operations until such time as one
> >>   of the exec functions is called.  Fork handlers may be
> >>   established by means of the pthread_atfork() function in order
> >>   to maintain application invariants across fork() calls.

-- 
DE




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.43.0508210944001.22901-100000>