GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A flexible logging library for use in Ruby programs based on the design of Java's log4j library.
Homepage: http://logging.rubyforge.org/
Clone URL: git://github.com/TwP/logging.git
using block notation for ensuring the lockfile is released
Tim Pease (author)
Thu Jul 17 10:51:40 -0700 2008
commit  3884cf2d0344c859edf799074137e44c1ee9f4a8
tree    8ca6ec98791b497dd7879b19a48784bcd1ea22dd
parent  62de24b36c0380c4bf67e94412534a323a912908
...
162
163
164
165
166
 
167
168
169
170
171
 
172
173
174
...
162
163
164
 
 
165
166
167
 
 
 
168
169
170
171
0
@@ -162,13 +162,10 @@ module Logging::Appenders
0
       if roll_required?(str)
0
         return roll unless @lockfile
0
 
0
- begin
0
- @lockfile.lock
0
+ @lockfile.lock {
0
           check_logfile
0
           roll if roll_required?
0
- ensure
0
- @lockfile.unlock
0
- end
0
+ }
0
       end
0
     end
0
 

Comments

    No one has commented yet.