This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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: cached getpid


On Sun, Apr 10, 2005 at 02:47:21PM +0200, Torsten Foertsch wrote:
> Hi,
> 
> I have just discovered that my glibc (2.3.3) is caching the getpid() result. 
> What can I do to invalidate the cache after a "syscall( SYS_clone )" or 
> "syscall( SYS_fork )"?

Use clone () or fork () libc functions instead?
Or alternatively use syscall (SYS_getpid) instead of getpid().

	Jakub


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