]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] procfs: Fix listing of /proc/NOT_A_TGID/task
authorGuillaume Chazarain <guichaz@yahoo.fr>
Thu, 1 Feb 2007 07:48:14 +0000 (23:48 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 2 Feb 2007 00:22:41 +0000 (16:22 -0800)
commit7d8952440f4090522b740257f1c6b2cf96413969
tree9afe525a5e3dda6ac88b533caacde21f30673ebe
parent432bd6cbf9f016f5480153b1cdfbd046f8d4fb1e
[PATCH] procfs: Fix listing of /proc/NOT_A_TGID/task

Listing /proc/PID/task were PID is not a TGID should not result in
duplicated entries.

[g ~]$ pidof thunderbird-bin
2751
[g ~]$ ls /proc/2751/task
2751  2770  2771  2824  2826  2834  2835  2851  2853
[g ~]$ ls /proc/2770/task
2751  2770  2771  2824  2826  2834  2835  2851  2853
2770  2771  2824  2826  2834  2835  2851  2853
[g ~]$

Signed-off-by: Guillaume Chazarain <guichaz@yahoo.fr>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c