about summary refs log tree commit homepage
path: root/lib/unicorn/http_server.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2013-10-20 04:29:55 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-20 04:32:04 +0000
commitd90eebe1e50e2bdb9632b64591e4b84cbc0049a1 (patch)
treed6db0ea4f2300d1ba628bb1d4a0442e0ee37c375 /lib/unicorn/http_server.rb
parenta9dfd48f9668d0a6e04cf009cea0c4ede962144d (diff)
downloadunicorn-d90eebe1e50e2bdb9632b64591e4b84cbc0049a1.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
ref: yahns commit bcb10abe53cfb1d6a8ef7daef59eb10ced397c8a
Diffstat (limited to 'lib/unicorn/http_server.rb')
0 files changed, 0 insertions, 0 deletions