mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
webrick/httpservelet/cgi_runner: avoid IO#reopen on pathname
IO#reopen seems to behave strangely on Win32 based on the logs posted by Greg for [Bug #14420]. Lets try to fix the issue by using File.open explicitly (but not Kernel#open). * lib/webrick/httpservelet/cgi_runner: use File.open explicitly [Bug #14220] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
14d44c8997
commit
0d92f156b6
1 changed files with 2 additions and 2 deletions
|
@ -23,11 +23,11 @@ STDIN.binmode
|
|||
|
||||
len = sysread(STDIN, 8).to_i
|
||||
out = sysread(STDIN, len)
|
||||
STDOUT.reopen(out, "w")
|
||||
STDOUT.reopen(File.open(out, "w"))
|
||||
|
||||
len = sysread(STDIN, 8).to_i
|
||||
err = sysread(STDIN, len)
|
||||
STDERR.reopen(err, "w")
|
||||
STDERR.reopen(File.open(err, "w"))
|
||||
|
||||
len = sysread(STDIN, 8).to_i
|
||||
dump = sysread(STDIN, len)
|
||||
|
|
Loading…
Add table
Reference in a new issue