From: Eric W. Biederman Date: Thu, 31 Jul 2014 10:10:50 +0000 (-0700) Subject: proc: Implement /proc/thread-self to point at the directory of the current thread X-Git-Tag: omap-for-v3.17/fixes-against-rc2~99^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0097875bd41528922fb3bb5f348c53f17e00e2fd;p=pandora-kernel.git proc: Implement /proc/thread-self to point at the directory of the current thread /proc/thread-self is derived from /proc/self. /proc/thread-self points to the directory in proc containing information about the current thread. This funtionality has been missing for a long time, and is tricky to implement in userspace as gettid() is not exported by glibc. More importantly this allows fixing defects in /proc/mounts and /proc/net where in a threaded application today they wind up being empty files when only the initial pthread has exited, causing problems for other threads. Signed-off-by: "Eric W. Biederman" --- Reading git-diff-tree failed