From 5b198763c597459a27e7e88827dcc748b98b6670 Mon Sep 17 00:00:00 2001 From: runge Date: Sun, 10 Dec 2006 03:12:02 +0000 Subject: x11vnc: FINDCREATEDISPLAY support to create X session if one cannot be found. Fix bug in java viewer. --- x11vnc/connections.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'x11vnc/connections.c') 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: -- cgit v1.2.1