Re: socket closing

From: Mark Hahn (hahn@coffee.psychology.mcmaster.ca)
Date: Tue Apr 24 2001 - 15:25:29 EST


> My question is, how do I tell what these (UNCLOSED) file descriptors point
> to ?
>
> I can so a stat on /proc/PID/fd/FILE and I get something like this:
> stat /proc/10881/fd/44
> File: "/proc/10881/fd/44" -> "socket:[1041079]"

the number is an inode, which you can find in /proc/net/{tcp,udp,unix}
lsof or fuser might be able to do this "non-manually"

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org



This archive was generated by hypermail 2b29 : Mon Apr 30 2001 - 21:00:29 EST