spark/video: add missing O_CLOEXEC to memory fd

This commit is contained in:
Stefan Seyfried
2017-02-19 17:54:56 +01:00
committed by max_10
parent ba7a351f59
commit d57ac2cbdd

View File

@@ -1190,7 +1190,7 @@ bool cVideo::GetScreenImage(unsigned char * &video, int &xres, int &yres, bool g
lt_info("%s: primary display pane not found in /proc/bpa2\n", __func__);
}
mfd = open("/dev/mem", O_RDWR);
mfd = open("/dev/mem", O_RDWR | O_CLOEXEC);
if (mfd < 0) {
lt_info("%s: cannot open open /dev/mem (%m)\n", __func__);
goto error_cleanup;