Re: Xid - Pid establishment
Carsten Haitzler (The Rasterman) <[email protected]>
| Newsgroups | gmane.comp.xfree86.devel |
|---|---|
| Organization | You expect me to be organized? |
| Message-ID | <20050212214251.0f1ced7f@icky> |
On Sat, 12 Feb 2005 16:57:51 +0530 Kala B <[email protected]> babbled: > Hi, > Thanks a lot for your immediate reply. > It would be very helpful if you could point me to a mechanism, > whereby I could achieve the same without an LD_PRELOAD? hack xlib itself. ie replace libX11.so with a modified version that does what this LD_PRELOAD does. > Thanks again > Kala. > > > > > > On Sat, 12 Feb 2005 20:20:59 +0900, The Rasterman Carsten Haitzler > <[email protected]> wrote: > > On Sat, 12 Feb 2005 16:17:33 +0530 Kala B <[email protected]> babbled: > > > > > Hi, > > > > > > I am trying to develop an application, which needs to know the owner ( > > > process id ) of every window that is being created on the system. As, > > > setting of _NET_WM_PID is not mandated for applications, is there some > > > other way through which I could get to know the pid of a window? > > > > > > I am only interested in the scenario, when both the xserver and > > > xclient are on the same machine, so the XServer uses a Unix domain > > > socket. So, in this case, the XServer would anyway get to know the pid > > > of the connecting client by using the SO_PEERCRED option. Can the > > > xserver propagate the pid of the client ? (Probably by adding another > > > specific property to every window being created?). Would there be any > > > issues with this approach. > > > > > > These are my very very initial thoughts and am also new to X, so > > > request you all to give me your suggestions. > > > > see attached source and Makefile.am - use it as an LD_PRELOAD (i did this a long > > time ago) and then u guarantee properties on everything you run with the > > LD_PRELOAD active. > > > > > Thanks a lot > > > Kala > > > _______________________________________________ > > > Devel mailing list > > > [email protected] > > > http://XFree86.Org/mailman/listinfo/devel > > > > > > > -- > > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > > The Rasterman (Carsten Haitzler) [email protected] > > [email protected] > > Tokyo, Japan ( ) > > > > > > > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] [email protected] Tokyo, Japan ( )