In order to be able to calculate the size of the log file you will need
to either use atomics or another kind of locking mechanism when you
update the filesize, as you will have multiple threads updating this
value concurrently.

so -1 for me, as I don't think it will work on multi-cpu machines
(changes to a +1 if I'm on crack and this does work properly on
multi-cpu machines)

Brad Nicholes wrote:
 >
 >     We have a requirement on NetWare to rotate the logs based on file
 > size rather than on a rotation time.  This patch modifies rotatelogs to
 > accept either a rotation time or a file size parameter.  If a file size
 > is specified, it will automatically rotate the log when the actual file
 > size reaches the specified file size.  I would like to check this patch
 > in if I can get enough votes.
 >
 > thanks,
 > Brad
 >
 >
 >

Reply via email to