summaryrefslogtreecommitdiffstats
path: root/x11vnc/user.c
diff options
context:
space:
mode:
authorrunge <[email protected]>2009-12-02 22:09:51 -0500
committerrunge <[email protected]>2009-12-02 22:09:51 -0500
commit00a9a0ea4d0f642b34b4423ea867099b52edf078 (patch)
treec9df2a624681358103c80e79847fd415cf3a8e2f /x11vnc/user.c
parentf40b0111827677625d81b7b7fcd001ce285adf69 (diff)
downloadlibtdevnc-00a9a0ea4d0f642b34b4423ea867099b52edf078.tar.gz
libtdevnc-00a9a0ea4d0f642b34b4423ea867099b52edf078.zip
x11vnc: -appshare mode for sharing an application windows instead of the
entire desktop. map port + 5500 in reverse connect. Add id_cmd remote control functions for id (and other) windows. Allow zero port in SSL reverse connections. Adjust delays between multiple reverse connections; X11VNC_REVERSE_SLEEP_MAX env var. Add some missing mutex locks; add INPUT_LOCK and threads_drop_input. More safety in -threads mode for new framebuffer change. Fix some stderr leaking in -inetd mode.
Diffstat (limited to 'x11vnc/user.c')
-rw-r--r--x11vnc/user.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/x11vnc/user.c b/x11vnc/user.c
index d70ce0d..2eb939e 100644
--- a/x11vnc/user.c
+++ b/x11vnc/user.c
@@ -1085,6 +1085,7 @@ void install_passwds(void) {
passwds_new[0] = passwds_old[0];
passwds_new[1] = viewonly_passwd;
passwds_new[2] = NULL;
+ /* mutex */
screen->authPasswdData = (void*) passwds_new;
} else if (passwd_list) {
int i = 0;
@@ -1094,6 +1095,7 @@ void install_passwds(void) {
if (begin_viewonly < 0) {
begin_viewonly = i+1;
}
+ /* mutex */
screen->authPasswdData = (void*) passwd_list;
screen->authPasswdFirstViewOnly = begin_viewonly;
}
@@ -1167,6 +1169,7 @@ static void handle_one_http_request(void) {
if (inetd || screen->httpPort == 0) {
int port = find_free_port(5800, 5860);
if (port) {
+ /* mutex */
screen->httpPort = port;
} else {
rfbLog("handle_one_http_request: no http port.\n");
@@ -1703,6 +1706,7 @@ static void vnc_redirect_loop(char *vnc_redirect_test, int *vnc_redirect_cnt) {
#if LIBVNCSERVER_HAVE_FORK
if ((pid = fork()) > 0) {
close(screen->httpListenSock);
+ /* mutex */
screen->httpListenSock = -2;
usleep(500 * 1000);
} else {