summaryrefslogtreecommitdiff
path: root/src/file.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-02-18 20:24:23 +1100
committerMaxime Coste <mawww@kakoune.org>2022-02-18 20:24:23 +1100
commit0e572589f39142d22c4b2c7235c1ca95cb9f441b (patch)
tree241f56efa32790ab829e52f36354f16931624eb4 /src/file.hh
parente04a14cf73eb9b8011c05360c13dafa9f907bc4d (diff)
Do not keep MappedFile fd opened
According to the mmap man page this is not necessary, and this avoids exposing the fd.
Diffstat (limited to 'src/file.hh')
-rw-r--r--src/file.hh1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/file.hh b/src/file.hh
index b1dd0bcd..7f30c0b2 100644
--- a/src/file.hh
+++ b/src/file.hh
@@ -49,7 +49,6 @@ struct MappedFile
operator StringView() const;
- int fd;
const char* data;
struct stat st {};
};