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


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: Calls to getpid() in clone'd child return parent's pid.


On Wed, Sep 13, 2006 at 10:10:31PM -0400, Carlos O'Donell wrote:
> I'm seeing that calls to getpid() in the clone'd child return the parent's 
> pid.
> If I make a raw syscall e.g. syscall(__NR_getpid), this returns the correct
> pid. Is this problem indicative of anything in particular?

Failure to handle RESET_PID in your clone.S, maybe?

-- 
Daniel Jacobowitz
CodeSourcery


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