summaryrefslogtreecommitdiffstats
path: root/x11vnc/v4l.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/v4l.c')
-rw-r--r--x11vnc/v4l.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/x11vnc/v4l.c b/x11vnc/v4l.c
index d762bc7..ddf84a4 100644
--- a/x11vnc/v4l.c
+++ b/x11vnc/v4l.c
@@ -1126,6 +1126,7 @@ static char *guess_via_v4l_info(char *dev, int *fd) {
sprintf(cmd, "v4l-info '%s' > %s", dev, tmp);
close(tmp_fd);
+ close_exec_fds();
rc = system(cmd);
if (rc != 0) {
unlink(tmp);