From 260bf60e52ffdfa625be1153624b0d123fc305f8 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Mon, 25 Dec 2023 14:20:53 +1300 Subject: Correctly release the underlying file mapping. (#9340) * Avoiding using `Tempfile` which was retaining the file preventing it from unlinking. --- include/ruby/io/buffer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/ruby') 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. -- cgit v1.2.3