summaryrefslogtreecommitdiffstats
path: root/x11vnc/connections.c
diff options
context:
space:
mode:
authorrunge <runge>2006-12-10 03:12:02 +0000
committerrunge <runge>2006-12-10 03:12:02 +0000
commit5b198763c597459a27e7e88827dcc748b98b6670 (patch)
tree07111d31dc1932bd6c5bb99bd899916e5efb7129 /x11vnc/connections.c
parent726cedb871a70aa6307df74e769605ee89bd52d0 (diff)
downloadlibtdevnc-5b198763c597459a27e7e88827dcc748b98b6670.tar.gz
libtdevnc-5b198763c597459a27e7e88827dcc748b98b6670.zip
x11vnc: FINDCREATEDISPLAY support to create X session if one cannot be found. Fix bug in java viewer.
Diffstat (limited to 'x11vnc/connections.c')
-rw-r--r--x11vnc/connections.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/x11vnc/connections.c b/x11vnc/connections.c
index d4f5b35..006b819 100644
--- a/x11vnc/connections.c
+++ b/x11vnc/connections.c
@@ -517,6 +517,8 @@ int run_user_command(char *cmd, rfbClientPtr client, char *mode, char *input,
rfbLog("running command:\n");
rfbLog(" %s\n", cmd);
+ close_exec_fds();
+
if (output != NULL) {
FILE *ph = popen(cmd, "r");
char line[1024];
@@ -587,7 +589,6 @@ int run_user_command(char *cmd, rfbClientPtr client, char *mode, char *input,
}
}
#else
- /* this will still have port 5900 open */
rc = system(cmd);
#endif
got_rc: