diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c index bc760bdee40..d67df73b0cd 100644 --- a/dlls/qcap/v4l.c +++ b/dlls/qcap/v4l.c @@ -799,7 +799,7 @@ Capture * qcap_driver_init( IPin *pOut, USHORT card ) sprintf(device, "/dev/video%i", card); TRACE("opening %s\n", device); - capBox->fd = video_open(device, O_RDWR | O_NONBLOCK); + capBox->fd = video_open(device, O_RDWR | O_NONBLOCK | O_CLOEXEC); if (capBox->fd == -1) { WARN("open failed (%d)\n", errno);