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
ab4126d1
Commit
ab4126d1
authored
Mar 04, 2002
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverted exception fds to NULL, because of unexpected behaviour
parent
c70b4dd8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
Makefile
Makefile
+2
-2
rfbserver.c
rfbserver.c
+7
-0
sockets.c
sockets.c
+2
-2
No files found.
Makefile
View file @
ab4126d1
...
...
@@ -9,8 +9,8 @@ VNCSERVERLIB=-L. -lvncserver -L/usr/local/lib -lz -ljpeg
# The code for 3 Bytes/Pixel is not very efficient!
FLAG24
=
-DALLOW24BPP
#OPTFLAGS=-g #
-Wall
OPTFLAGS
=
-O2
-Wall
OPTFLAGS
=
-g
-Wall
#
OPTFLAGS=-O2 -Wall
CFLAGS
=
$(OPTFLAGS)
$(PTHREADDEF)
$(FLAG24)
$(INCLUDES)
-DBACKCHANNEL
RANLIB
=
ranlib
...
...
rfbserver.c
View file @
ab4126d1
...
...
@@ -42,6 +42,13 @@
#include <vncserverctrl.h>
#endif
#ifdef DEBUGPROTO
#undef DEBUGPROTO
#define DEBUGPROTO(x) x
#else
#define DEBUGPROTO(x)
#endif
rfbClientPtr
pointerClient
=
NULL
;
/* Mutex for pointer events */
static
void
rfbProcessClientProtocolVersion
(
rfbClientPtr
cl
);
...
...
sockets.c
View file @
ab4126d1
...
...
@@ -188,7 +188,7 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec)
memcpy
((
char
*
)
&
fds
,
(
char
*
)
&
(
rfbScreen
->
allFds
),
sizeof
(
fd_set
));
tv
.
tv_sec
=
0
;
tv
.
tv_usec
=
usec
;
nfds
=
select
(
rfbScreen
->
maxFd
+
1
,
&
fds
,
NULL
,
&
fds
,
&
tv
);
nfds
=
select
(
rfbScreen
->
maxFd
+
1
,
&
fds
,
NULL
,
NULL
/* &fds */
,
&
tv
);
if
(
nfds
==
0
)
{
return
;
}
...
...
@@ -451,7 +451,7 @@ WriteExact(cl, buf, len)
FD_SET
(
sock
,
&
fds
);
tv
.
tv_sec
=
5
;
tv
.
tv_usec
=
0
;
n
=
select
(
sock
+
1
,
NULL
,
&
fds
,
&
fds
,
&
tv
);
n
=
select
(
sock
+
1
,
NULL
,
&
fds
,
NULL
/* &fds */
,
&
tv
);
if
(
n
<
0
)
{
rfbLogPerror
(
"WriteExact: select"
);
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