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
603b5667
Commit
603b5667
authored
Feb 20, 2006
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some non-gcc compiler warnings and signals in x11vnc
parent
4b8cc33e
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
1228 additions
and
894 deletions
+1228
-894
ChangeLog
ChangeLog
+4
-0
configure.ac
configure.ac
+2
-2
cursor.c
libvncserver/cursor.c
+1
-1
main.c
libvncserver/main.c
+1
-0
filelistinfo.c
libvncserver/tightvnc-filetransfer/filelistinfo.c
+3
-0
filetransfermsg.c
libvncserver/tightvnc-filetransfer/filetransfermsg.c
+3
-0
handlefiletransferrequest.c
...cserver/tightvnc-filetransfer/handlefiletransferrequest.c
+3
-0
prepare_x11vnc_dist.sh
prepare_x11vnc_dist.sh
+1
-1
ChangeLog
x11vnc/ChangeLog
+5
-0
README
x11vnc/README
+1122
-880
connections.c
x11vnc/connections.c
+30
-6
inet.c
x11vnc/inet.c
+41
-2
user.c
x11vnc/user.c
+5
-0
x11vnc.1
x11vnc/x11vnc.1
+1
-1
x11vnc_defs.c
x11vnc/x11vnc_defs.c
+1
-1
xevents.c
x11vnc/xevents.c
+5
-0
No files found.
ChangeLog
View file @
603b5667
2006-02-20 Karl Runge <runge@karlrunge.com>
* main.c, cursor.c, tightvnc-filetransfer: fix some non-gcc
compiler warnings.
2006-01-14 Karl Runge <runge@karlrunge.com>
* x11vnc: add -8to24 option for some multi-depth displays.
...
...
configure.ac
View file @
603b5667
# Process this file with autoconf to produce a configure script.
AC_INIT(LibVNCServer, 0.
8
pre, http://sourceforge.net/projects/libvncserver)
AM_INIT_AUTOMAKE(LibVNCServer, 0.
8
pre)
AC_INIT(LibVNCServer, 0.
9
pre, http://sourceforge.net/projects/libvncserver)
AM_INIT_AUTOMAKE(LibVNCServer, 0.
9
pre)
AM_CONFIG_HEADER(rfbconfig.h)
AX_PREFIX_CONFIG_H([rfb/rfbconfig.h])
...
...
libvncserver/cursor.c
View file @
603b5667
...
...
@@ -341,7 +341,7 @@ char* rfbMakeMaskFromAlphaSource(int width,int height,unsigned char* alphaSource
}
}
free
(
error
);
return
result
;
return
(
char
*
)
result
;
}
void
rfbFreeCursor
(
rfbCursorPtr
cursor
)
...
...
libvncserver/main.c
View file @
603b5667
...
...
@@ -400,6 +400,7 @@ clientOutput(void *data)
sraRgnDestroy
(
updateRegion
);
}
/* Not reached. */
return
NULL
;
}
...
...
libvncserver/tightvnc-filetransfer/filelistinfo.c
View file @
603b5667
...
...
@@ -42,6 +42,9 @@ DisplayFileList(FileListInfo fli)
rfbLog
(
"DISPLAYING FILE NAMES IN THE LIST ...END
\n\n
"
);
}
#ifndef __GNUC__
#define __FUNCTION__ "unknown"
#endif
int
AddFileListItemInfo
(
FileListInfoPtr
fileListInfoPtr
,
char
*
name
,
...
...
libvncserver/tightvnc-filetransfer/filetransfermsg.c
View file @
603b5667
...
...
@@ -100,6 +100,9 @@ GetFileListResponseMsg(char* path, char flags)
return
fileListMsg
;
}
#ifndef __GNUC__
#define __FUNCTION__ "unknown"
#endif
int
CreateFileListInfo
(
FileListInfoPtr
pFileListInfo
,
char
*
path
,
int
flag
)
...
...
libvncserver/tightvnc-filetransfer/handlefiletransferrequest.c
View file @
603b5667
...
...
@@ -84,6 +84,9 @@ InitFileTransfer()
fileTransferInitted
=
TRUE
;
}
#ifndef __GNUC__
#define __FUNCTION__ "unknown"
#endif
/*
* This method is called from InitFileTransfer method and
...
...
prepare_x11vnc_dist.sh
View file @
603b5667
#!/bin/bash
VERSION
=
"0.8"
VERSION
=
"0.8
.1
"
cd
"
$(
dirname
"
$0
"
)
"
...
...
x11vnc/ChangeLog
View file @
603b5667
2006-02-20 Karl Runge <runge@karlrunge.com>
* x11vnc: add SIGINT SIGQUIT handling for run_user_command(),
set some signal handlers to SIG_DLF for forked children,
put a timeout on port 113 connection to viewer machine.
2006-02-06 Karl Runge <runge@karlrunge.com>
* x11vnc: fix AIX build wrt h_errno.
...
...
x11vnc/README
View file @
603b5667
This source diff could not be displayed because it is too large. You can
view the blob
instead.
x11vnc/connections.c
View file @
603b5667
...
...
@@ -431,15 +431,39 @@ static int run_user_command(char *cmd, rfbClientPtr client, char *mode) {
#if LIBVNCSERVER_HAVE_FORK
{
pid_t
pid
,
pidw
;
if
((
pid
=
fork
())
>
0
)
{
pidw
=
waitpid
(
pid
,
&
rc
,
0
);
}
else
if
(
pid
==
-
1
)
{
fprintf
(
stderr
,
"could not fork
\n
"
);
rfbLogPerror
(
"fork"
);
rc
=
system
(
cmd
);
struct
sigaction
sa
,
intr
,
quit
;
sigset_t
omask
;
sa
.
sa_handler
=
SIG_IGN
;
sa
.
sa_flags
=
0
;
sigemptyset
(
&
sa
.
sa_mask
);
sigaction
(
SIGINT
,
&
sa
,
&
intr
);
sigaction
(
SIGQUIT
,
&
sa
,
&
quit
);
sigaddset
(
&
sa
.
sa_mask
,
SIGCHLD
);
sigprocmask
(
SIG_BLOCK
,
&
sa
.
sa_mask
,
&
omask
);
if
((
pid
=
fork
())
>
0
||
pid
==
-
1
)
{
if
(
pid
!=
-
1
)
{
pidw
=
waitpid
(
pid
,
&
rc
,
0
);
}
sigaction
(
SIGINT
,
&
intr
,
(
struct
sigaction
*
)
NULL
);
sigaction
(
SIGQUIT
,
&
quit
,
(
struct
sigaction
*
)
NULL
);
sigprocmask
(
SIG_SETMASK
,
&
omask
,
(
sigset_t
*
)
NULL
);
if
(
pid
==
-
1
)
{
fprintf
(
stderr
,
"could not fork
\n
"
);
rfbLogPerror
(
"fork"
);
rc
=
system
(
cmd
);
}
}
else
{
/* this should close port 5900, etc.. */
int
fd
;
sigaction
(
SIGINT
,
&
intr
,
(
struct
sigaction
*
)
NULL
);
sigaction
(
SIGQUIT
,
&
quit
,
(
struct
sigaction
*
)
NULL
);
sigprocmask
(
SIG_SETMASK
,
&
omask
,
(
sigset_t
*
)
NULL
);
for
(
fd
=
3
;
fd
<
256
;
fd
++
)
{
close
(
fd
);
}
...
...
x11vnc/inet.c
View file @
603b5667
...
...
@@ -177,8 +177,47 @@ char *ident_username(rfbClientPtr client) {
if
(
!
user
||
*
user
==
'\0'
)
{
char
msg
[
128
];
int
n
,
sock
,
ok
=
0
;
if
((
sock
=
rfbConnectToTcpAddr
(
client
->
host
,
113
))
<
0
)
{
int
block
=
0
;
/*
* need to check to see if the operation will block for
* a long time: a firewall may just ignore our packets.
*/
#if LIBVNCSERVER_HAVE_FORK
{
pid_t
pid
,
pidw
;
int
rc
;
if
((
pid
=
fork
())
>
0
)
{
usleep
(
100
*
1000
);
/* 0.1 sec */
pidw
=
waitpid
(
pid
,
&
rc
,
WNOHANG
);
if
(
pidw
<=
0
)
{
usleep
(
1000
*
1000
);
/* 1.0 sec */
pidw
=
waitpid
(
pid
,
&
rc
,
WNOHANG
);
if
(
pidw
<=
0
)
{
block
=
1
;
kill
(
pid
,
SIGTERM
);
}
}
}
else
if
(
pid
==
-
1
)
{
;
}
else
{
/* child */
signal
(
SIGHUP
,
SIG_DFL
);
signal
(
SIGINT
,
SIG_DFL
);
signal
(
SIGQUIT
,
SIG_DFL
);
signal
(
SIGTERM
,
SIG_DFL
);
if
((
sock
=
rfbConnectToTcpAddr
(
client
->
host
,
113
))
<
0
)
{
exit
(
1
);
}
else
{
close
(
sock
);
exit
(
0
);
}
}
}
#endif
if
(
block
)
{
;
}
else
if
((
sock
=
rfbConnectToTcpAddr
(
client
->
host
,
113
))
<
0
)
{
rfbLog
(
"could not connect to ident: %s:%d
\n
"
,
client
->
host
,
113
);
}
else
{
...
...
x11vnc/user.c
View file @
603b5667
...
...
@@ -557,6 +557,11 @@ static int try_user_and_display(uid_t uid, char *dpystr) {
Display
*
dpy2
=
NULL
;
int
rc
;
signal
(
SIGHUP
,
SIG_DFL
);
signal
(
SIGINT
,
SIG_DFL
);
signal
(
SIGQUIT
,
SIG_DFL
);
signal
(
SIGTERM
,
SIG_DFL
);
rc
=
switch_user_env
(
uid
,
name
,
home
,
0
);
if
(
!
rc
)
{
exit
(
1
);
...
...
x11vnc/x11vnc.1
View file @
603b5667
...
...
@@ -2,7 +2,7 @@
.TH X11VNC "1" "February 2006" "x11vnc " "User Commands"
.SH NAME
x11vnc - allow VNC connections to real X11 displays
version: 0.8
, lastmod: 2006-02-06
version: 0.8
.1, lastmod: 2006-02-20
.SH SYNOPSIS
.B x11vnc
[OPTION]...
...
...
x11vnc/x11vnc_defs.c
View file @
603b5667
...
...
@@ -15,7 +15,7 @@ int xtrap_base_event_type = 0;
int
xdamage_base_event_type
=
0
;
/* date +'lastmod: %Y-%m-%d' */
char
lastmod
[]
=
"0.8
lastmod: 2006-02-06
"
;
char
lastmod
[]
=
"0.8
.1 lastmod: 2006-02-20
"
;
/* X display info */
...
...
x11vnc/xevents.c
View file @
603b5667
...
...
@@ -473,6 +473,11 @@ void spawn_grab_buster(void) {
fprintf
(
stderr
,
"spawn_grab_buster: could not fork
\n
"
);
rfbLogPerror
(
"fork"
);
}
else
{
signal
(
SIGHUP
,
SIG_DFL
);
signal
(
SIGINT
,
SIG_DFL
);
signal
(
SIGQUIT
,
SIG_DFL
);
signal
(
SIGTERM
,
SIG_DFL
);
grab_buster_watch
(
parent
,
dstr
);
exit
(
0
);
}
...
...
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