Hello. sys_getpid() returns current->tgid for both 2.4 and 2.6 kernels. http://lxr.linux.no/source/kernel/timer.c?v=2.4.28#L753 http://lxr.linux.no/source/kernel/timer.c?v=2.6.11#L967 Then, why not use current->tgid instead of current->pid in proc_self_readlink()/proc_self_follow_link() for 2.4 kernels? http://lxr.linux.no/source/fs/proc/base.c?v=2.4.28#L1017 http://lxr.linux.no/source/fs/proc/base.c?v=2.6.11#L1589 (Well, this change would trigger a lot of changes in fs/proc/base.c to change from *_PID_* to *_TGID_* .) Thank you. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/