spark/video: add missing O_CLOEXEC to memory fd

Origin commit data
------------------
Branch: master
Commit: d57ac2cbdd
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-19 (Sun, 19 Feb 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2017-02-19 17:54:56 +01:00
committed by max_10
parent ee7016f88d
commit 8f403385ab

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__); 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) { if (mfd < 0) {
lt_info("%s: cannot open open /dev/mem (%m)\n", __func__); lt_info("%s: cannot open open /dev/mem (%m)\n", __func__);
goto error_cleanup; goto error_cleanup;