1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/mkmf.rb (Logging.postpone): close @log only when it's available.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2010-08-15 07:22:57 +00:00
parent 1148f6a327
commit 5dde183d0a
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sun Aug 15 16:14:31 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/mkmf.rb (Logging.postpone): close @log only when it's available.
Sun Aug 15 13:30:35 2010 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.h (VpVtoD): fix a type of e.

View file

@ -278,7 +278,7 @@ module Logging
begin
log.print(open {yield})
ensure
@log.close
@log.close if @log
File::open(tmplog) {|t| FileUtils.copy_stream(t, log)}
@log, @logfile, @orgout, @orgerr = log, *save
@postpone -= 1