[lkml]   [2003]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Who changed /proc/<pid>/ in 2.6.0-test5-bk9?
In article <>,
Ulrich Drepper <> wrote:
>Linus Torvalds wrote:
>> I think /proc/self most likely _should_ point into the thread, not the
>> task.
>As much as I want to not see this, I fear I have to agree.
>There is, for instance, no guarantee that all CLONE_THREAD clones also
>have CLONE_FILES set. Then using /proc/self/%d for some thread-local
>file descriptor will return the process group leaders file descriptor,
>not the own.

How about use /proc/self/task/self/fd/%d if /proc/self/task/self
exists, /proc/self/fd/%d otherwise ?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:49    [W:0.097 / U:3.160 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site