Messages in this thread | | | Date | Wed, 01 Oct 2003 20:35:21 -0700 | From | Ulrich Drepper <> | Subject | Re: Who changed /proc/<pid>/ in 2.6.0-test5-bk9? |
| |
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.
-- --------------. ,-. 444 Castro Street Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA Red Hat `--' drepper at redhat.com `---------------------------
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |