mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Don't write to /dev/null on mingw. [#3921 state:resolved] (ht: Patrick Daryll Glandien)
This commit is contained in:
@@ -37,7 +37,7 @@ module Kernel
|
||||
# puts 'But this will'
|
||||
def silence_stream(stream)
|
||||
old_stream = stream.dup
|
||||
stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')
|
||||
stream.reopen(RUBY_PLATFORM =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')
|
||||
stream.sync = true
|
||||
yield
|
||||
ensure
|
||||
|
||||
Reference in New Issue
Block a user