This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: getpid/vfork broken


> Andreas Schwab wrote:
> > getpid does not return the correct result after vfork:
> 
> It doesn't have to.  You are not allowed to call anything but _exit or
> one of the exec functions.

getpid is something that has always worked in all contexts.  I don't think
it's worth any other minor benefit to risk breaking applications that do
this one thing and have worked since the invention of vfork.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]