diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-08-14 21:03:44 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-08-15 02:38:48 -0700 |
commit | bd8f086963d193ec91a549361938f2d3497f8f4d (patch) | |
tree | 0e00708ba4b62bad71a950f41190a81debc64d11 /lib/unicorn/util.rb | |
parent | e59fe8ba119104dfefa2135326ca9bd945db962f (diff) | |
download | unicorn-bd8f086963d193ec91a549361938f2d3497f8f4d.tar.gz |
Diffstat (limited to 'lib/unicorn/util.rb')
-rw-r--r-- | lib/unicorn/util.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/unicorn/util.rb b/lib/unicorn/util.rb index d2214b7..5454005 100644 --- a/lib/unicorn/util.rb +++ b/lib/unicorn/util.rb @@ -7,13 +7,13 @@ module Unicorn APPEND_FLAGS = File::WRONLY | File::APPEND - # this reopens logs that have been rotated (using logrotate(8) or - # similar). It is recommended that you install + # This reopens ALL logfiles in the process that have been rotated + # using logrotate(8) (without copytruncate) or similar tools. # A +File+ object is considered for reopening if it is: # 1) opened with the O_APPEND and O_WRONLY flags # 2) opened with an absolute path (starts with "/") # 3) the current open file handle does not match its original open path - # 4) unbuffered (as far as userspace buffering goes) + # 4) unbuffered (as far as userspace buffering goes, not O_SYNC) # Returns the number of files reopened def reopen_logs nr = 0 |