[uClibc] vfork() wrapper in libpthread: BAD!

Alexandre Oliva aoliva at redhat.com
Wed May 5 20:51:32 UTC 2004


On May  5, 2004, Alexandre Oliva <aoliva at redhat.com> wrote:

> How about this patch?

Here's another oddity related with pthread_atfork: __libc_atfork(),
defined in libpthread/linuxthreads/sysdeps/pthread/bits/libc-lock.h,
calls (weak) __pthread_atfork() as long as it's non-NULL.  However, we
don't define __pthread_atfork as an alias to pthread_atfork(), so
__libc_atfork() is just an somewhat-expensive nop.  Fortunately, it
doesn't appear to be used anywhere, but it's odd nevertheless.  Should
we just take it out, or alias __pthread_atfork to pthread_atfork, in
case it __libc_atfork ever gets used?

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}



More information about the uClibc mailing list