mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user