Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2007 00:50:07 GMT
From:      "Craig Rodrigues" <rodrigc@crodrigues.org>
To:        freebsd-threads@FreeBSD.org
Subject:   Re: threads/115211: pthread_atfork misbehaves in initial thread
Message-ID:  <200708240050.l7O0o75k034916@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR threads/115211; it has been noted by GNATS.

From: "Craig Rodrigues" <rodrigc@crodrigues.org>
To: bug-followup@FreeBSD.org, sysmaint@contek.com
Cc:  
Subject: Re: threads/115211: pthread_atfork misbehaves in initial thread
Date: Fri, 24 Aug 2007 08:41:56 -0400

 Hi,
 
 On FreeBSD-CURRENT, if I do:
 
 gcc pthread_atforkbug.c -lkse && ./a.out
 
 This is the output:
 
 parent pid (48871)
 Child exiting: (48872)
 child (48872) returned
 
 If I do:
 
 gcc pthread_atforkbug.c -lkse && ./a.out
 
 parent pid (48877)
 af_prepare:  pid (48877)
  af_parent:  pid (48877)
   af_child:  pid (48878)
 Child exiting: (48878)
 child (48878) returned
 
 
 On FreeBSD 6.2, -pthread is mapped to -lkse, while on CURRENT, it is mapped
 to -lthr.  Can you try your test again with -lthr on FreeBSD 6.2?
 This looks like a libkse bug.
 
 -- 
 Craig Rodrigues
 rodrigc@crodrigues.org



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