Actions
Bug #9046
closed[PATCH] Inter-process locking for log rotation is required
Description
I sent a pull request on https://github.com/ruby/ruby/pull/428 . Please see details on it.
Updated by shyouhei (Shyouhei Urabe) about 11 years ago
- Description updated (diff)
Updated by naruse (Yui NARUSE) about 11 years ago
The point "current implementation is wrong on multi-process environment" sounds reasonable and need to fix.
I commented some implementation points to the pull request.
Updated by naruse (Yui NARUSE) about 11 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r43511.
Naotoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- lib/logger.rb: Inter-process locking for log rotation
Current implementation fails log rotation on multi process env.
by sonots sonots@gmail.com
https://github.com/ruby/ruby/pull/428 fix GH-428 [Bug #9046]
Updated by nobu (Nobuyoshi Nakada) about 11 years ago
- Status changed from Closed to Open
- Priority changed from Normal to 5
- % Done changed from 100 to 0
=begin
It broke on Windows.
- don't use fork.
- don't assume that open file can be removed or renamed.
I'll try to fix or revert it.
=end
Updated by nobu (Nobuyoshi Nakada) about 11 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r43513.
Naotoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
logger.rb: fix r43511 for Windows
- lib/logger.rb (Logger::LogDevice::LogDeviceMutex#lock_shift_log):
open file can't be removed or renamed on Windows. [ruby-dev:47790]
[Bug #9046] - test/logger/test_logger.rb (TestLogDevice#run_children): don't use
fork.
Actions
Like0
Like0Like0Like0Like0Like0