Re: Window -> PID
bunka.munka_at_email.si
Date: 11/21/05
- Previous message: pasqdnik_at_gmail.com: "Re: su problems?"
- In reply to: Alan Coopersmith: "Re: Window -> PID"
- Next in thread: Alan Coopersmith: "Re: Window -> PID"
- Reply: Alan Coopersmith: "Re: Window -> PID"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 21 Nov 2005 12:55:32 +0100
In article <dlqtg9$ql$2@agate.berkeley.edu>, alanc@alum.calberkeley.org
says...
> <bunka.munka@yahoo.com> writes in comp.unix.solaris:
> |Sometimes, I have an application running in Window and want to
> |know the PID. Is there a way I can get it somehow digging into
> |structures, if I know the Window ID (obtained by xwininfo) ?
>
> Not really easily. (On most OS'es, it's a flat out no - on Solaris,
> with Xsun, the X server knows the pid for each client in order to do the
> IA process priority manipulations, so you can dig it out with debugger
> magic, but that's not something you'ld want to include in a script or
> program (though I have).)
>
> The best way to do this would be get the applications you care about
> to set the _NET_WM_PID property - see the Extended WM spec at:
> http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#id2511832
>
>
I am familiar with the most kernel structures (actually i am digging
with adb into crash files many times), but didn't find any appropriate.
Application are 3rd party, all runs on a host itself. They're very
complex (about 400-500 java processes).
Most of the time i am successfull finding one (with truss -p <assume
pid> and moving mouse over that window produce a massive
lwp_mutexes...), but I am pretty sure XServer has that structure
somewhere, if not in their temporary files, it must have some kernel
process window tree...
thx anyway
- Previous message: pasqdnik_at_gmail.com: "Re: su problems?"
- In reply to: Alan Coopersmith: "Re: Window -> PID"
- Next in thread: Alan Coopersmith: "Re: Window -> PID"
- Reply: Alan Coopersmith: "Re: Window -> PID"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|