Skip to content

Commit c8ce8a7

Browse files
committedOct 10, 2015
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

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed
 

‎kernel/common/process_mirror.rb

-1
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

-10
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.