diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2014-07-31 12:10:50 +0200 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2014-08-04 19:07:11 +0200 |
commit | 0097875bd41528922fb3bb5f348c53f17e00e2fd (patch) | |
tree | 414cffac820d04e4542dc7654e7ef188f00ba0b2 /fs/proc/Makefile | |
parent | proc: Have net show up under /proc/<tgid>/task/<tid> (diff) | |
download | linux-0097875bd41528922fb3bb5f348c53f17e00e2fd.tar.xz linux-0097875bd41528922fb3bb5f348c53f17e00e2fd.zip |
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" <ebiederm@xmission.com>
Diffstat (limited to 'fs/proc/Makefile')
-rw-r--r-- | fs/proc/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/proc/Makefile b/fs/proc/Makefile index 239493ec718e..7151ea428041 100644 --- a/fs/proc/Makefile +++ b/fs/proc/Makefile @@ -23,6 +23,7 @@ proc-y += version.o proc-y += softirqs.o proc-y += namespaces.o proc-y += self.o +proc-y += thread_self.o proc-$(CONFIG_PROC_SYSCTL) += proc_sysctl.o proc-$(CONFIG_NET) += proc_net.o proc-$(CONFIG_PROC_KCORE) += kcore.o |