Commit dfd22fb2 authored by Wei Xie's avatar Wei Xie Committed by Alexandre Julliard

qcap: Add O_CLOEXEC flag to prevent child process from inheriting handles.

parent f9b4be55
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment