mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
AK: MappedFile should open with O_CLOEXEC.
This commit is contained in:
parent
3c0afccca0
commit
6f9df89c92
Notes:
sideshowbarker
2024-07-19 14:39:51 +09:00
Author: https://github.com/awesomekling
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