diff options
-rw-r--r-- | nxcomp/src/Loop.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp index ce1f92a68..cc0efa361 100644 --- a/nxcomp/src/Loop.cpp +++ b/nxcomp/src/Loop.cpp @@ -3944,12 +3944,13 @@ void SetupDisplaySocket(int &addr_family, sockaddr *&addr, addr_length = len +3; int ret = connect(testSocketFD, (struct sockaddr *) xServerAddrABSTRACT, addr_length); + close(testSocketFD); + if (ret == 0) { cerr << "Info" << ": Using abstract X11 socket in kernel namespace " << "for accessing DISPLAY=:" << xPort << ".\n"; - close(testSocketFD); addr = (sockaddr *) xServerAddrABSTRACT; delete [] display; return; |