From: Zefram <zefram@tao.co.uk>
To: schaefer@brasslantern.com (Bart Schaefer)
Cc: sweth@astaroth.nit.gwu.edu, zsh-users@math.gatech.edu
Subject: Re: rolling over high-traffic logfiles?
Date: Thu, 16 Jul 1998 09:36:43 +0100 (BST) [thread overview]
Message-ID: <199807160836.JAA25520@taos.demon.co.uk> (raw)
In-Reply-To: <980715220851.ZM13527@candle.brasslantern.com> from "Bart Schaefer" at Jul 15, 98 10:08:51 pm
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
next prev parent reply other threads:[~1998-07-16 8:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-16 3:49 Sweth Chandramouli
1998-07-16 5:08 ` Bart Schaefer
1998-07-16 8:36 ` Zefram [this message]
1998-07-16 12:46 ` Brian Harvell
1998-07-16 15:26 ` Bart Schaefer
1998-07-16 16:14 ` Zefram
1998-07-16 16:41 ` Nitin P Garg
1998-07-17 7:36 ` Jos Backus
1998-07-24 23:42 ` Todd Graham Lewis
1998-07-16 13:45 ` Duncan Sinclair
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199807160836.JAA25520@taos.demon.co.uk \
--to=zefram@tao.co.uk \
--cc=schaefer@brasslantern.com \
--cc=sweth@astaroth.nit.gwu.edu \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).