Skip to content

Commit c8ce8a7

Browse files
committed
Remove converting to negative fd
Convert a fd to -(fd + 1) if its a Fixnum seems wrong. Negative fds's are mostly invalid.
1 parent c1f479d commit c8ce8a7

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

kernel/common/process_mirror.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ def convert_to_fd(obj, target)
186186
when 2
187187
if obj[0] == :child
188188
fd = convert_to_fd obj[1], target
189-
fd.kind_of?(::Fixnum) ? -(fd + 1) : fd
190189
else
191190
[obj[0], convert_file_mode(obj[1]), 0644]
192191
end

spec/tags/ruby/core/io/popen_tags.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)