Re: [PATCH] Add cloexec information to fdinfo

Ulrich Drepper
2011-06-29T08:16:34Z

[-- Attachment #1: Type: text/plain, Size: 799 bytes --]

On 06/28/2011 01:23 PM, Linus Torvalds wrote:
> The description makes no mention of why this would be needed?

In this specific case I was trying to re-implement the pfiles program.
For normal file descriptors (not sockets) this was the last piece of
information which wasn't available. This is all part of my "give
Solaris users no reason to not switch" effort. I intend to offer the
code to the util-linux-ng maintainers.

> 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.

True, and maybe that will be useful as well.

I might actually have some more patches to get to socket information but
I haven't fully checked out yet what is available.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]