lkml.org 
[lkml]   [1996]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [Q] Howto read task list in userspace ?
Date
> 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



\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.088 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site