how can you tell which programs are using esd?

sktsee sktsee at tulsaconnect.com
Mon May 5 16:43:57 UTC 2008


On Sat, 2008-05-03 at 22:48 +0100, andy baxter wrote:
> how can you tell which programs are using esd? I've tried this:
> 
> root at monkey:/etc# netstat -a --program | grep esd
> unix  2      [ ACC ]     STREAM     LISTENING     232594   
> 17042/esd           /tmp/.esd-1000/socket
> unix  3      [ ]         STREAM     CONNECTED     232601   
> 17042/esd           /tmp/.esd-1000/socket
> unix  2      [ ]         STREAM                   232593   17042/esd       
> 
> which I think tells me that something is connected to the esd socket at 
> /tmp/.esd-1000/socket. But it doesn't tell me what is connecting to esd 
> - I thought there would be another entry for the program that was at the 
> other end of the connection. (I'm just playing stuff through 'listen' at 
> the moment - just curious about how to find this out if I need to know 
> what programs are using the sound card.)
> 
hmm. I looked at this a little over the weekend and I never could
determine an easy way to see both ends of the socket. Obviously, you can
determine with netstat the process that owns the socket, but figuring
out which client process links to it is difficult without debugging
either with strace, or gdb. That's more of a hassle than I wanted to
deal with.

Anyway, the easiest way I found to see what processes are hooked into
esd was using "lsof |grep esd". At least, you can see what processes
utilize esd, and the number of links to esd's socket is roughly the same
number of those processes listed. It should be good enough for a
ballpark estimate.

-- 
sktsee





More information about the ubuntu-users mailing list