Re: Window -> PID

bunka.munka_at_email.si
Date: 11/21/05

  • Next message: Fran Horan: "Re: determine system type?"
    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


  • Next message: Fran Horan: "Re: determine system type?"

    Relevant Pages

    • Re: Window -> PID
      ... I have an application running in Window and want to ... > know the PID. ... Is there a way I can get it somehow digging into ... something which is interacting with the X server. ...
      (comp.unix.solaris)
    • Re: Window -> PID
      ... I have an application running in Window and want to ... > know the PID. ... Is there a way I can get it somehow digging into ... excuse my annoying spamfilter - it works for me. ...
      (comp.unix.solaris)
    • Re: Window -> PID
      ... I have an application running in Window and want to ... Is there a way I can get it somehow digging into ... the X server knows the pid for each client in order to do the ... but that's not something you'ld want to include in a script or ...
      (comp.unix.solaris)
    • Window -> PID
      ... I have an application running in Window and want to ... know the PID. ... Is there a way I can get it somehow digging into ... Thx ...
      (comp.unix.solaris)
    • Re: Window -> PID
      ... the X server knows the pid for each client in order to do the ... |I am familiar with the most kernel structures (actually i am digging ... |pid> and moving mouse over that window produce a massive ... no way to get it out other than via poking in the X server process ...
      (comp.unix.solaris)