Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
rasky
libvncserver
Commits
9ec36a65
Commit
9ec36a65
authored
Feb 18, 2002
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
select exceptfds
parent
45a4b4a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sockets.c
sockets.c
+2
-2
No files found.
sockets.c
View file @
9ec36a65
...
@@ -188,7 +188,7 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec)
...
@@ -188,7 +188,7 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec)
memcpy
((
char
*
)
&
fds
,
(
char
*
)
&
(
rfbScreen
->
allFds
),
sizeof
(
fd_set
));
memcpy
((
char
*
)
&
fds
,
(
char
*
)
&
(
rfbScreen
->
allFds
),
sizeof
(
fd_set
));
tv
.
tv_sec
=
0
;
tv
.
tv_sec
=
0
;
tv
.
tv_usec
=
usec
;
tv
.
tv_usec
=
usec
;
nfds
=
select
(
rfbScreen
->
maxFd
+
1
,
&
fds
,
NULL
,
NULL
,
&
tv
);
nfds
=
select
(
rfbScreen
->
maxFd
+
1
,
&
fds
,
NULL
,
&
fds
,
&
tv
);
if
(
nfds
==
0
)
{
if
(
nfds
==
0
)
{
return
;
return
;
}
}
...
@@ -451,7 +451,7 @@ WriteExact(cl, buf, len)
...
@@ -451,7 +451,7 @@ WriteExact(cl, buf, len)
FD_SET
(
sock
,
&
fds
);
FD_SET
(
sock
,
&
fds
);
tv
.
tv_sec
=
5
;
tv
.
tv_sec
=
5
;
tv
.
tv_usec
=
0
;
tv
.
tv_usec
=
0
;
n
=
select
(
sock
+
1
,
NULL
,
&
fds
,
NULL
,
&
tv
);
n
=
select
(
sock
+
1
,
NULL
,
&
fds
,
&
fds
,
&
tv
);
if
(
n
<
0
)
{
if
(
n
<
0
)
{
rfbLogPerror
(
"WriteExact: select"
);
rfbLogPerror
(
"WriteExact: select"
);
UNLOCK
(
cl
->
outputMutex
);
UNLOCK
(
cl
->
outputMutex
);
...
...
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