diff options
Diffstat (limited to 'lib/unicorn/util.rb')
-rw-r--r-- | lib/unicorn/util.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/unicorn/util.rb b/lib/unicorn/util.rb index a735c68..e9dd57f 100644 --- a/lib/unicorn/util.rb +++ b/lib/unicorn/util.rb @@ -62,18 +62,18 @@ module Unicorn begin File.open(fp.path, 'a') { |tmpfp| fp.reopen(tmpfp) } - rescue IOError, Errno::EBADF - next - end - fp.sync = true - new_st = fp.stat + fp.sync = true + new_st = fp.stat - # this should only happen in the master: - if orig_st.uid != new_st.uid || orig_st.gid != new_st.gid - fp.chown(orig_st.uid, orig_st.gid) - end + # this should only happen in the master: + if orig_st.uid != new_st.uid || orig_st.gid != new_st.gid + fp.chown(orig_st.uid, orig_st.gid) + end - nr += 1 + nr += 1 + rescue IOError, Errno::EBADF + # not much we can do... + end end nr |