mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +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: https://github.com/SerenityOS/serenity/commit/6f9df89c923
|
@ -13,7 +13,7 @@ MappedFile::MappedFile(const String& file_name)
|
|||
: m_file_name(file_name)
|
||||
{
|
||||
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) {
|
||||
struct stat st;
|
||||
|
|
Loading…
Reference in a new issue