workaround IO#reopen bug in rbx when reopening logs
commitf09f5bc32b54e9d2e9f594fd2a2358af0a0f999a
authorEric Wong <normalperson@yhbt.net>
Tue, 8 Jun 2010 03:26:43 +0000 (8 03:26 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 8 Jun 2010 03:26:43 +0000 (8 03:26 +0000)
tree90062f3dec7adfc3da17419a1ccf7566ace71793
parent9a028876d23c7aab1420d81d3c001fbc91354538
workaround IO#reopen bug in rbx when reopening logs

IO#reopen in Rubinius seems to munge the O_APPEND flag when passed a
path, however passing an actual IO object.  However, at the system call
level, everything is the same.

ref: http://github.com/evanphx/rubinius/issues/347
lib/unicorn/util.rb
test/unit/test_util.rb