mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Set autoclose:
for inherited FDs only [ci skip]
This commit is contained in:
parent
12883f8fa6
commit
180d37c817
1 changed files with 2 additions and 2 deletions
|
@ -289,8 +289,8 @@ module Test
|
||||||
/(?:\A|\s)--jobserver-(?:auth|fds)=(?:(\d+),(\d+)|fifo:(.*))/ =~ makeflags
|
/(?:\A|\s)--jobserver-(?:auth|fds)=(?:(\d+),(\d+)|fifo:(.*))/ =~ makeflags
|
||||||
begin
|
begin
|
||||||
if fifo = $3
|
if fifo = $3
|
||||||
r = File.open(fifo, IO::RDONLY|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, autoclose: false)
|
w = File.open(fifo, IO::WRONLY|IO::NONBLOCK|IO::BINARY)
|
||||||
else
|
else
|
||||||
r = IO.for_fd($1.to_i(10), "rb", autoclose: false)
|
r = IO.for_fd($1.to_i(10), "rb", autoclose: false)
|
||||||
w = IO.for_fd($2.to_i(10), "wb", autoclose: false)
|
w = IO.for_fd($2.to_i(10), "wb", autoclose: false)
|
||||||
|
|
Loading…
Reference in a new issue