about summary refs log tree commit homepage
path: root/test/test_bin.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2013-10-20 04:17:01 +0000
committerEric Wong <e@80x24.org>2013-10-20 04:17:01 +0000
commitbcb10abe53cfb1d6a8ef7daef59eb10ced397c8a (patch)
treeb5a5cd933b105f2a470ff5db9c920ac479eb060e /test/test_bin.rb
parent76f7451408315fe5256d204ceee0e259d1282b85 (diff)
downloadyahns-bcb10abe53cfb1d6a8ef7daef59eb10ced397c8a.tar.gz
In multithreaded apps, we must use dup2/dup3 with a temporary
descriptor to reopen log files atomically.  This is the only way
to protect all concurrent userspace access to a file when reopening.

ref: http://bugs.ruby-lang.org/issues/9036
Diffstat (limited to 'test/test_bin.rb')
0 files changed, 0 insertions, 0 deletions