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
54dd29cc
Commit
54dd29cc
authored
Dec 31, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jan 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Client.c: cleanup Boolean handling for nxagentNeedWakeup*() macros
parent
2ce0fa8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Client.c
nx-X11/programs/Xserver/hw/nxagent/Client.c
+6
-6
No files found.
nx-X11/programs/Xserver/hw/nxagent/Client.c
View file @
54dd29cc
...
...
@@ -457,7 +457,7 @@ void nxagentWaitWakeupBySplit(ClientPtr client)
{
#ifdef TEST
if
(
nxagentNeedWakeupBySplit
(
client
)
==
0
)
if
(
!
nxagentNeedWakeupBySplit
(
client
)
)
{
fprintf
(
stderr
,
"++++++nxagentWaitWakeupBySplit: WARNING! The client [%d] is already awake.
\n
"
,
client
->
index
);
...
...
@@ -497,12 +497,12 @@ void nxagentWaitWakeupBySplit(ClientPtr client)
#endif
if
(
nxagentNeedWakeupBySplit
(
client
)
==
0
||
if
(
!
nxagentNeedWakeupBySplit
(
client
)
||
NXDisplayError
(
nxagentDisplay
)
==
1
)
{
#ifdef TEST
if
(
nxagentNeedWakeupBySplit
(
client
)
==
0
)
if
(
!
nxagentNeedWakeupBySplit
(
client
)
)
{
fprintf
(
stderr
,
"++++++nxagentWaitWakeupBySplit: Client [%d] can now run.
\n
"
,
client
->
index
);
...
...
@@ -535,7 +535,7 @@ FIXME: Should record a serial number for the client, so that the
*/
if
(
client
->
index
<
MAX_CONNECTIONS
)
{
if
(
nxagentNeedWakeup
(
client
)
==
0
)
if
(
!
nxagentNeedWakeup
(
client
)
)
{
#ifdef TEST
fprintf
(
stderr
,
"++++++nxagentSuspendBySplit: Suspending client [%d] with agent sequence [%ld].
\n
"
,
...
...
@@ -583,7 +583,7 @@ FIXME: Should record a serial number for the client, so that the
{
nxagentClientPriv
(
client
)
->
clientState
&=
~
SleepingBySplit
;
if
(
nxagentNeedWakeup
(
client
)
==
0
)
if
(
!
nxagentNeedWakeup
(
client
)
)
{
#ifdef TEST
fprintf
(
stderr
,
"++++++nxagentWakeupBySplit: Resuming client [%d] with agent sequence [%ld].
\n
"
,
...
...
@@ -629,7 +629,7 @@ void nxagentCheckRestartedClients(struct timeval **timeout)
for
(
int
i
=
1
;
i
<
currentMaxClients
;
i
++
)
{
if
(
clients
[
i
]
!=
NULL
&&
clients
[
i
]
->
osPrivate
!=
NULL
&&
nxagentNeedWakeup
(
clients
[
i
])
==
0
)
!
nxagentNeedWakeup
(
clients
[
i
])
)
{
int
fd
=
((
OsCommPtr
)
clients
[
i
]
->
osPrivate
)
->
fd
;
...
...
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