aboutsummaryrefslogtreecommitdiffstats
path: root/lib/logger.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/logger.rb')
-rw-r--r--lib/logger.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/logger.rb b/lib/logger.rb
index 2eb4e642d2..c70b091469 100644
--- a/lib/logger.rb
+++ b/lib/logger.rb
@@ -633,8 +633,12 @@ private
end
end
- def lock_shift_log
- begin
+ if /mswin|mingw/ =~ RUBY_PLATFORM
+ def lock_shift_log
+ yield
+ end
+ else
+ def lock_shift_log
retry_limit = 8
retry_sleep = 0.1
begin