Hi All,
I am using Linux kernel 2.6.27(SLES11). I am getting one strange problem.
I am using task_pid function followed by get_pid function to get pid
structure.
Here is code snippet,
struct *pid = get_pid(task_pid(current));
I am saving this pid structure in a variable which is used later to kill the
same process using kill_pid providing the same "pid *" which we saved
earlier. Since kill_pid() requires "pid *", we have save this somewhere
during process creation. Whenever we use get(task_pid(current)) in the code,
I observed that the process is not visible in "ps -ef" as well as "/proc"
filesystem. Could someone please let me know if this is something known or
what could be the reason of this problem.
There is alternative kernel API get_task_pid to get pid structure, but
because of GPL , we can not use this API in our private code.
--
Thanks
Shyam.