mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +00:00
AK: Do not keep an open FD in MmappedFile
We only need an open FD while establishing the mapping, and can close it immediately after mmap() call.
This commit is contained in:
parent
837b476283
commit
55d7810fab
2 changed files with 15 additions and 18 deletions
|
@ -24,7 +24,6 @@ public:
|
|||
|
||||
private:
|
||||
size_t m_size { 0 };
|
||||
int m_fd { -1 };
|
||||
void* m_map { (void*)-1 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue