summaryrefslogtreecommitdiff
path: root/spec/ruby/core/process/fixtures/map_fd.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/process/fixtures/map_fd.rb')
-rw-r--r--spec/ruby/core/process/fixtures/map_fd.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/ruby/core/process/fixtures/map_fd.rb b/spec/ruby/core/process/fixtures/map_fd.rb
index fc542625b0..3ed887486b 100644
--- a/spec/ruby/core/process/fixtures/map_fd.rb
+++ b/spec/ruby/core/process/fixtures/map_fd.rb
@@ -1,6 +1,7 @@
fd = ARGV.shift.to_i
-f = File.for_fd fd
+f = File.for_fd(fd)
+f.autoclose = false
begin
f.write "writing to fd: #{fd}"
ensure