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

Erik Andersen andersen at codepoet.org
Thu May 6 09:25:55 UTC 2004


On Wed May 05, 2004 at 05:51:32PM -0300, Alexandre Oliva wrote:
> 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?

Ugh.  That stuff is leftover from a dead-end on the evolutionary
tree and serves no purpose.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list