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
48029a3a
Commit
48029a3a
authored
Jul 31, 2003
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rfbLog can be overridden; EINTR on read/write means just try again
parent
ae5142bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
main.c
main.c
+3
-1
rfb.h
rfb/rfb.h
+2
-1
sockets.c
sockets.c
+6
-0
No files found.
main.c
View file @
48029a3a
...
@@ -59,7 +59,7 @@ void rfbLogEnable(int enabled) {
...
@@ -59,7 +59,7 @@ void rfbLogEnable(int enabled) {
*/
*/
void
void
rfbLog
(
const
char
*
format
,
...)
rfb
Default
Log
(
const
char
*
format
,
...)
{
{
va_list
args
;
va_list
args
;
char
buf
[
256
];
char
buf
[
256
];
...
@@ -82,6 +82,8 @@ rfbLog(const char *format, ...)
...
@@ -82,6 +82,8 @@ rfbLog(const char *format, ...)
UNLOCK
(
logMutex
);
UNLOCK
(
logMutex
);
}
}
rfbLogProc
rfbLog
=
rfbDefaultLog
;
void
rfbLogPerror
(
const
char
*
str
)
void
rfbLogPerror
(
const
char
*
str
)
{
{
rfbLog
(
"%s: %s
\n
"
,
str
,
strerror
(
errno
));
rfbLog
(
"%s: %s
\n
"
,
str
,
strerror
(
errno
));
...
...
rfb/rfb.h
View file @
48029a3a
...
@@ -729,7 +729,8 @@ extern rfbBool rfbProcessSizeArguments(int* width,int* height,int* bpp,int* argc
...
@@ -729,7 +729,8 @@ extern rfbBool rfbProcessSizeArguments(int* width,int* height,int* bpp,int* argc
/* main.c */
/* main.c */
extern
void
rfbLogEnable
(
int
enabled
);
extern
void
rfbLogEnable
(
int
enabled
);
extern
void
rfbLog
(
const
char
*
format
,
...);
typedef
void
(
*
rfbLogProc
)(
const
char
*
format
,
...);
extern
rfbLogProc
rfbLog
;
extern
void
rfbLogPerror
(
const
char
*
str
);
extern
void
rfbLogPerror
(
const
char
*
str
);
void
rfbScheduleCopyRect
(
rfbScreenInfoPtr
rfbScreen
,
int
x1
,
int
y1
,
int
x2
,
int
y2
,
int
dx
,
int
dy
);
void
rfbScheduleCopyRect
(
rfbScreenInfoPtr
rfbScreen
,
int
x1
,
int
y1
,
int
x2
,
int
y2
,
int
dx
,
int
dy
);
...
...
sockets.c
View file @
48029a3a
...
@@ -415,6 +415,9 @@ ReadExactTimeout(rfbClientPtr cl, char* buf, int len, int timeout)
...
@@ -415,6 +415,9 @@ ReadExactTimeout(rfbClientPtr cl, char* buf, int len, int timeout)
#ifdef WIN32
#ifdef WIN32
errno
=
WSAGetLastError
();
errno
=
WSAGetLastError
();
#endif
#endif
if
(
errno
==
EINTR
)
continue
;
if
(
errno
!=
EWOULDBLOCK
&&
errno
!=
EAGAIN
)
{
if
(
errno
!=
EWOULDBLOCK
&&
errno
!=
EAGAIN
)
{
return
n
;
return
n
;
}
}
...
@@ -478,6 +481,9 @@ WriteExact(cl, buf, len)
...
@@ -478,6 +481,9 @@ WriteExact(cl, buf, len)
#ifdef WIN32
#ifdef WIN32
errno
=
WSAGetLastError
();
errno
=
WSAGetLastError
();
#endif
#endif
if
(
errno
==
EINTR
)
continue
;
if
(
errno
!=
EWOULDBLOCK
&&
errno
!=
EAGAIN
)
{
if
(
errno
!=
EWOULDBLOCK
&&
errno
!=
EAGAIN
)
{
UNLOCK
(
cl
->
outputMutex
);
UNLOCK
(
cl
->
outputMutex
);
return
n
;
return
n
;
...
...
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