summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2014-07-31 03:10:50 -0700
committerEric W. Biederman <ebiederm@xmission.com>2014-08-04 10:07:11 -0700
commit0097875bd41528922fb3bb5f348c53f17e00e2fd (patch)
tree414cffac820d04e4542dc7654e7ef188f00ba0b2 /net
parent6ba8ed79a3cce14bd5597218fd46408b8376f8f3 (diff)
downloadlinux-0097875bd41528922fb3bb5f348c53f17e00e2fd.tar.bz2
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 'net')
0 files changed, 0 insertions, 0 deletions