[PATCH] Fix bug with popen/pthread_create

Ulrich Drepper drepper@redhat.com
Fri Feb 7 19:59:00 GMT 2003


Andreas Schwab wrote:

> Shouldn't that be moved outside of #ifdef __NR_vfork, so that __fork is
> used even if compiling with kernel headers that do not define vfork?  The
> minimum for i386 is still 2.0.10.

No.  If somebody calls vfork instead of fork the atfork handlers are not
called.  For the code this means we make the syscall directly (if
__NR_vfork is not defined you better don't have __ASSUME_VFORK_SYSCALL
defined).  I added some preprocessor code to check for this condition.

-- 
--------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------



More information about the Libc-hacker mailing list