Permalink
Browse files

fix fd numbers for STDOUT+STDERR

  • Loading branch information...
1 parent 22d9620 commit 500533b9e2bf534b9a5f69ccd8fb8b915e743546 @timfel timfel committed Feb 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/kernel/bootstrap/Kernel.rb
@@ -157,8 +157,8 @@ def __fd_for_exec(arg)
return 2 if arg._equal?(:err)
elsif arg._is_a?(File)
return 0 if arg._equal?(STDIN)
- return 0 if arg._equal?(STDOUT)
- return 0 if arg._equal?(STDERR)
+ return 1 if arg._equal?(STDOUT)
+ return 2 if arg._equal?(STDERR)
end
return nil
end

0 comments on commit 500533b

Please sign in to comment.