Re: [PATCH] Add cloexec information to fdinfo

From: Ulrich Drepper
Date: Wed Jun 29 2011 - 04:16:36 EST


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: signature.asc
Description: OpenPGP digital signature