[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: finding process id of a window
From:       Alexander Gottwald <Alexander.Gottwald () s1999 ! tu-chemnitz ! de>
Date:       2005-03-29 18:35:01
Message-ID: Pine.LNX.4.55.0503292023470.16332 () lupus ! ago ! vpn
[Download RAW message or body]

Jaymz Julian wrote:

>
> On Tue, Mar 29, 2005 at 07:24:46PM +0200, Jochen.Baier@stud.uni-karlsruhe.de wrote:
> [code to read _NET_WM_PID stripped]
>
> Shouldn't this code be modified to give no result on remote apps? (which,
> by my reading of it, it will give instead a bogus PID that may be something
> else on the current machine)?  I guess checking WM_CLIENT_MACHINE is the local
> machine would suffice.

There is ambiguity too.  Two hosts on different networks with same name and
IP are connected with an ssh tunnel.


  NET1      NAT               NAT      NET2
Host abc     |                 |     Host abc
             |     SSH tunnel  |
  xterm  ---------------------------> xserver
             |                 |

the WM_CLIENT_MACHINE fails but the client is on a different host.

There is another problem with the pid issue:
The actual pid of the conneting client is the pid of the forked sshd and there
may be more clients connected through the ssh tunnel.

bye
        ago
-- 
 Alexander.Gottwald@s1999.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic