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

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?

No, I did not actually encounter this problem in a real program.  I came
upon it based upon a discussion elsewhere.  When I encountered the problem
on FreeBSD, I reported it with low priority.

> That said, it should work regardless.

Exactly.

> DE

 - dmw



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