Common shared memory module. Using O_CLOEXEC for opened files.

This commit is contained in:
sorgelig
2021-04-16 23:12:46 +08:00
parent 2899437499
commit 9cd404ea65
22 changed files with 186 additions and 240 deletions

View File

@@ -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)
{