From 605a1d10676aee5037e217b2af97ccc76e64d8fe Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Fri, 23 May 2008 02:10:14 -0700 Subject: [PATCH] XQuartz: Add the launchd fd to AllSockets as well (cherry picked from commit 83f72529394be5871671d73b6ef4f8bc83708f8a) --- os/connection.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/os/connection.c b/os/connection.c index 8eb66b092..b31a5509c 100644 --- a/os/connection.c +++ b/os/connection.c @@ -1327,15 +1327,17 @@ _X_EXPORT void ListenOnOpenFD(int fd) { ListenTransFds[ListenTransCount] = fd; FD_SET(fd, &WellKnownConnections); + FD_SET(fd, &AllSockets); - /* It is always local - if (!_XSERVTransIsLocal(ciptr)) { - // DefineSelf (fd); - } - */ - /* Increment the count */ ListenTransCount++; + + /* This *might* be needed, but it seems to be working fine without it... */ + //ResetAuthorization(); + //ResetHosts(display); +#ifdef XDMCP + //XdmcpReset(); +#endif } #endif