[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: pthread_atfork is "hidden" -- bug or feature?



On Wed, Feb 19, 2003 at 09:46:02AM -0800, Paul Pluzhnikov wrote:
> Gentlemen,
> 
> On all RH releases prior to the Phoebe, pthread_atfork is "exposed":
> 
> $ objdump -T /lib/i686/libpthread.so.0 | grep pthread_atfork
> 00007520 g    DF .text  000000ed  GLIBC_2.0   __pthread_atfork
> 00007520 g    DF .text  000000ed  GLIBC_2.0   pthread_atfork
> 
> On Phoebe (nptl-20021219.tar.bz2) pthread_atfork is hidden:
> 
> $ objdump -T /lib/i686/libpthread.so.0 | grep pthread_atfork
> 000067a0 g    DF .text  00000046 (GLIBC_2.0)  pthread_atfork
> 
> This is visible at the user level as the test case below demonstrates.
> Is this a bug or a feature?

That's on purpose. pthread_atfork is in libpthread_nonshared.a now
(this is linked in automatically when one uses -lpthread or -pthread).

	Jakub





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]