[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#292388: cause of this



This "bug" seems to be caused by the following code
in xfree86-4.3.0.dfsg.1/xc/lib/X11/ConnDis:1062
-------------------------------------------------
/*
* We don't use the sockaddr_un for this encoding.
* Instead, we create a sockaddr_in filled with
* a decreasing counter for the address, and the
* pid for the port.
*/

static unsigned long    unix_addr = 0xFFFFFFFF;
unsigned long       the_addr;
unsigned short      the_port;

_XLockMutex(_Xglobal_lock);
the_addr = unix_addr--;
_XUnlockMutex(_Xglobal_lock);
the_port = getpid ();
-------------------------------------------------

Is this a bug in libX11, a bug in Xserver for insisting
uniqueness with such addresses, or shall I report
a bug against 9menu, which execs other programs
without forking?

Hochachtungsvoll,
        Bernhard R. Link



Reply to: