From 180d37c817dc55f27b7f4ea1278a36a691491148 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 7 Nov 2022 09:06:15 +0900 Subject: [PATCH] Set `autoclose:` for inherited FDs only [ci skip] --- tool/lib/test/unit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index fb1a53ce05..80d69dd38a 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -289,8 +289,8 @@ module Test /(?:\A|\s)--jobserver-(?:auth|fds)=(?:(\d+),(\d+)|fifo:(.*))/ =~ makeflags begin if fifo = $3 - r = File.open(fifo, IO::RDONLY|IO::NONBLOCK|IO::BINARY, autoclose: false) - w = File.open(fifo, IO::WRONLY|IO::NONBLOCK|IO::BINARY, autoclose: false) + r = File.open(fifo, IO::RDONLY|IO::NONBLOCK|IO::BINARY) + w = File.open(fifo, IO::WRONLY|IO::NONBLOCK|IO::BINARY) else r = IO.for_fd($1.to_i(10), "rb", autoclose: false) w = IO.for_fd($2.to_i(10), "wb", autoclose: false)