mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:14:58 +00:00
AK: MappedFile should open with O_CLOEXEC.
This commit is contained in:
parent
3c0afccca0
commit
6f9df89c92
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ MappedFile::MappedFile(const String& file_name)
|
||||||
: m_file_name(file_name)
|
: m_file_name(file_name)
|
||||||
{
|
{
|
||||||
m_size = PAGE_SIZE;
|
m_size = PAGE_SIZE;
|
||||||
m_fd = open(m_file_name.characters(), O_RDONLY);
|
m_fd = open(m_file_name.characters(), O_RDONLY | O_CLOEXEC);
|
||||||
|
|
||||||
if (m_fd != -1) {
|
if (m_fd != -1) {
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue