Re: [Q] Howto read task list in userspace ?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 27 May 1996 22:41:09 +0100 (BST)


> How can i retrive which process (pid) has opened
> which socket on my machine w/o modifining the kernel?

You cant as multiple processes may own the same socket.

> Reading the /proc filesystem seems not to be enough,
> there is no relation between the socket describing files
> and those who describe the running processes.

Correct. it can only tell you WHO created the socket, not all
the processes owning it.

> can this be done ? where to get more information ?

Look at the current version of fuser