Commit b593edeb authored by Ulrich Sibiller's avatar Ulrich Sibiller

Loop.cpp: always close testSocketFD

was missing in the non-abstract code path (partially) fixes ArcticaProject/nx-libs#612
parent 4107159e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment