Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: rolling over high-traffic logfiles?



Bart Schaefer wrote:
>There's still a race condition where some process could attempt to write
>to extlog during the execution of "mv", that is, between unlinking the
>old extlog and renaming extlog.new to extlog.

mv should use rename() to atomically replace the log file, in which case
there is no race condition.

-zefram



Messages sorted by: Reverse Date, Date, Thread, Author