summaryrefslogtreecommitdiffstats
path: root/x11vnc/solid.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/solid.c')
-rw-r--r--x11vnc/solid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/x11vnc/solid.c b/x11vnc/solid.c
index e5ff5cf..f43d69d 100644
--- a/x11vnc/solid.c
+++ b/x11vnc/solid.c
@@ -68,6 +68,7 @@ static int dt_cmd(char *cmd) {
rfbLog("running command:\n %s\n", cmd);
usr_bin_path(0);
+ close_exec_fds();
rc = system(cmd);
usr_bin_path(1);
@@ -96,6 +97,7 @@ static char *cmd_output(char *cmd) {
rfbLog("running pipe:\n %s\n", cmd);
usr_bin_path(0);
+ close_exec_fds();
p = popen(cmd, "r");
usr_bin_path(1);