Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
6d8fe661
Commit
6d8fe661
authored
Dec 27, 2017
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Loop.cpp: create xServerAddrUNIX only if required
parent
14a55891
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Loop.cpp
nxcomp/src/Loop.cpp
+3
-4
No files found.
nxcomp/src/Loop.cpp
View file @
6d8fe661
...
...
@@ -3912,10 +3912,7 @@ void SetupDisplaySocket(int &addr_family, sockaddr *&addr,
nxinfo
<<
"Loop: Using real X server on UNIX domain socket.
\n
"
<<
std
::
flush
;
sockaddr_un
*
xServerAddrUNIX
=
new
sockaddr_un
;
addr_family
=
AF_UNIX
;
xServerAddrUNIX
->
sun_family
=
AF_UNIX
;
//
// The scope of this function is to fill either the sockaddr_un
...
...
@@ -3962,7 +3959,6 @@ void SetupDisplaySocket(int &addr_family, sockaddr *&addr,
<<
"for accessing DISPLAY=:"
<<
xPort
<<
".
\n
"
;
addr
=
(
sockaddr
*
)
xServerAddrABSTRACT
;
delete
xServerAddrUNIX
;
delete
[]
display
;
return
;
...
...
@@ -4035,6 +4031,9 @@ void SetupDisplaySocket(int &addr_family, sockaddr *&addr,
nxinfo
<<
"Loop: Assuming X socket name '"
<<
unixSocketName
<<
"'.
\n
"
<<
std
::
flush
;
sockaddr_un
*
xServerAddrUNIX
=
new
sockaddr_un
;
xServerAddrUNIX
->
sun_family
=
AF_UNIX
;
strcpy
(
xServerAddrUNIX
->
sun_path
,
unixSocketName
);
addr
=
(
sockaddr
*
)
xServerAddrUNIX
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment