Skip to content

Commit 4ac1dc3

Browse files
committed
Remove code for clearing the close-on-exec flag as the dup2 function always clears that flag in the new FD.
1 parent f8a1052 commit 4ac1dc3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/ruby/core/truffle/process_operations.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,6 @@ def redirect_file_descriptor(from, to)
422422

423423
result = Truffle::POSIX.dup2(to, from)
424424
Errno.handle if result < 0
425-
426-
flags = Truffle::POSIX.fcntl(from, Fcntl::F_GETFD, 0)
427-
Errno.handle if flags < 0
428-
429-
Truffle::POSIX.fcntl(from, Fcntl::F_SETFD, flags & ~Fcntl::FD_CLOEXEC)
430425
end
431426

432427
def spawn

0 commit comments

Comments
 (0)