i386 vfork bug -- was Re: [uClibc]popen failing on i386 -- vfork issue?

Manuel Novoa III mnovoa3 at bellsouth.net
Fri Mar 2 20:30:37 UTC 2001


Erik,

On Fri, 02 Mar 2001, Erik Andersen wrote:
> > As a temporary work-around, I'm making vfork on i386 a weak alias for fork.
> 
> It is interesting to note that GNU libc uses asm to implement vfork, so I doubt
> we can get away with simply using C.  Anyways, for your reading enjoyment (I'm
> in the middle of something so I don't have time to fix it) I am including the
> results of what glibc uses after running it through the pre-processor to
> resolve all its 15 levels or so of sysdeps.h preprocessor junk ( I found their
> source was mostly illegible due to the zillions of macros).

(output omitted)

That should be easy enough to modify for our use.  I looked at the glibc code,
but had already spent quite a bit of time isolating the bug (making sure it
wasn't related to any of the recent stdio changes) and didn't feel like "macro
definition hunting".  ;-)

Manuel





More information about the uClibc mailing list