Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2007 09:50:32 -0400 (EDT)
From:      Daniel Eischen <deischen@freebsd.org>
To:        Douglas Wells <sysmaint@contek.com>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: threads/115211: pthread_atfork misbehaves in initial thread
Message-ID:  <Pine.GSO.4.64.0708270946210.27666@sea.ntplx.net>
In-Reply-To: <200708271340.l7RDe6jl034237@freefall.freebsd.org>
References:  <200708271340.l7RDe6jl034237@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 27 Aug 2007, Douglas Wells wrote:

>
> Yes, I can verify that using:
> 	-pthread => erroneous behavior
> 	-lthr => expected behavior
> on my installation of 6.2.

The problem is that the program isn't threaded yet.  I'm not sure if
this is really a problem since pthread_atfork() is used to protect
and initialize data when a multi-threaded program forks.  If the
program isn't threaded, is there really a need to do this?

That said, it should work regardless.

-- 
DE



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