]> granicus.if.org Git - apache/commit
Refactor rotatelogs to allow easier implementation
authorRainer Jung <rjung@apache.org>
Sun, 11 Jan 2009 14:05:39 +0000 (14:05 +0000)
committerRainer Jung <rjung@apache.org>
Sun, 11 Jan 2009 14:05:39 +0000 (14:05 +0000)
commit29290c61eb91b5e3e0d04ee39bc22fcb1df8b3a2
tree0283796c09aaaaef41958bb8abb3d7694a0bd7ba
parente17cd01f72c0a8f1a337775b83162ceb0c63f0cc
Refactor rotatelogs to allow easier implementation
of signal triggered log rotation.

- move code into new functions checkRotate() and doRotate()
- bundle config data and runtime data in two structs to
  allow easier passing to functions
- Simplify bypass_io logic as a first use case for doRotate
  and rename flag to force_open to reflect the new logic

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@733476 13f79535-47bb-0310-9956-ffa450edef68
support/rotatelogs.c