Skip to content
Permalink
Browse files
Remove converting to negative fd
Convert a fd to -(fd + 1) if its a Fixnum seems wrong.
Negative fds's are mostly invalid.
  • Loading branch information
tak1n committed Oct 10, 2015
1 parent c1f479d commit c8ce8a75c7d6a9f8e5a27aed186f134e8831f827
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
@@ -186,7 +186,6 @@ def convert_to_fd(obj, target)
when 2
if obj[0] == :child
fd = convert_to_fd obj[1], target
fd.kind_of?(::Fixnum) ? -(fd + 1) : fd
else
[obj[0], convert_file_mode(obj[1]), 0644]
end

This file was deleted.

0 comments on commit c8ce8a7

Please sign in to comment.