Messages in this thread |  | | From | Linus Torvalds <> | | Date | Tue, 28 Jun 2011 10:23:58 -0700 | | Subject | Re: [PATCH] Add cloexec information to fdinfo |
| |
On Thu, Jun 9, 2011 at 8:55 PM, <drepper@akkadia.org> wrote: > There is one piece of information about a file descriptor which is > currently not visible from the outside: the close-on-exec flag. The > /proc/PID/fdinfo/* files have the mode information but this is > missing. Is the following patch acceptable?
The description makes no mention of why this would be needed?
Also, it's by no means the only thing not visible in /proc. Things like file locking status, leases, file descriptor ownership, signal number associated with the setown etc.
So the kernel has _lots_ of internal file knowledge, and not all of it makes sense to export to user space. What is so special about close-on-exec?
Linus -- 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/
|  |