mirror of
https://github.com/MiSTer-devel/Main_MiSTer.git
synced 2026-04-12 03:04:02 +00:00
Common shared memory module. Using O_CLOEXEC for opened files.
This commit is contained in:
@@ -1156,7 +1156,7 @@ void TDiskImage::Open(const char *filename, bool ROnly)
|
||||
}
|
||||
FType = typ;
|
||||
|
||||
int hfile = open(filename, O_RDONLY);
|
||||
int hfile = open(filename, O_RDONLY | O_CLOEXEC);
|
||||
|
||||
if (hfile < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user