[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4BFD33F0.1060908@univ-mlv.fr>
Date: Wed, 26 May 2010 16:45:04 +0200
From: Sébastien Paumier
<sebastien.paumier@...v-mlv.fr>
To: linux-kernel@...r.kernel.org
Subject: PROBLEM: getpid() returning same value as getppid()
Hi,
here is a bug that occurs on my kernel 2.6.31-21, maybe with older ones.
If a C program contains a function with the constructor attribute that
calls getpid(), then, a call to syscall(SYS_fork) produces a son that
obtains the same value calling getpid() or getppid().
Best regards,
Sébastien Paumier
View attachment "test.c" of type "text/x-csrc" (511 bytes)
Powered by blists - more mailing lists