diff options
author | Samuel Williams <[email protected]> | 2023-12-25 14:20:53 +1300 |
---|---|---|
committer | GitHub <[email protected]> | 2023-12-25 14:20:53 +1300 |
commit | 260bf60e52ffdfa625be1153624b0d123fc305f8 (patch) | |
tree | f473605a7b5fd59e6892f56bbc064aca7c71bdde /include/ruby | |
parent | 5af64ff7db3d636201db68b9ba995131a04a8f7b (diff) |
Correctly release the underlying file mapping. (#9340)
* Avoiding using `Tempfile` which was retaining the file preventing it from unlinking.
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/io/buffer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/io/buffer.h b/include/ruby/io/buffer.h index 89efc0597d..b044db0539 100644 --- a/include/ruby/io/buffer.h +++ b/include/ruby/io/buffer.h @@ -58,6 +58,9 @@ enum rb_io_buffer_flags { // The buffer is read-only and cannot be modified. RB_IO_BUFFER_READONLY = 128, + + // The buffer is backed by a file. + RB_IO_BUFFER_FILE = 256, }; // Represents the endian of the data types. |