mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
spark/video: add missing O_CLOEXEC to memory fd
This commit is contained in:
@@ -1053,7 +1053,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;
|
||||||
|
Reference in New Issue
Block a user