Permalink
Browse files

Don't write to /dev/null on mingw. [#3921 state:resolved] (ht: Patric…

…k Daryll Glandien)
  • Loading branch information...
1 parent c428fbd commit bc4cdae3d9b8667a24b24ad4bc17ee623e84feb9 @wycats wycats committed Mar 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/kernel/reporting.rb
@@ -37,7 +37,7 @@ def silence_stderr #:nodoc:
# 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

0 comments on commit bc4cdae

Please sign in to comment.