threads/115211: pthread_atfork misbehaves in initial thread
Daniel Eischen
deischen at freebsd.org
Mon Aug 27 07:07:03 PDT 2007
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
More information about the freebsd-threads
mailing list