zsh-users
 help / color / mirror / code / Atom feed
From: Zefram <zefram@tao.co.uk>
To: schaefer@brasslantern.com (Bart Schaefer)
Cc: zsh-users@math.gatech.edu, sweth@astaroth.nit.gwu.edu
Subject: Re: rolling over high-traffic logfiles?
Date: Thu, 16 Jul 1998 17:14:28 +0100 (BST)	[thread overview]
Message-ID: <199807161614.RAA32121@taos.demon.co.uk> (raw)
In-Reply-To: <980716082633.ZM15563@candle.brasslantern.com> from "Bart Schaefer" at Jul 16, 98 08:26:32 am

Bart Schaefer wrote:
>} mv should use rename() to atomically replace the log file, in which case
>} there is no race condition.
>
>Fair enough.  There are two or more filesystem operations necessary even
>if only only system call, but I suppose that's only a possible problem
>on a multiprocessor system.

POSIX.1 defines rename() to be atomic, as is historical practice.
On multiprocessor systems the kernel just has to take a little extra care.
POSIX.2 defines mv to behave as if it were calling rename().

-zefram


  reply	other threads:[~1998-07-16 16:27 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
1998-07-16 12:46   ` Brian Harvell
1998-07-16 15:26     ` Bart Schaefer
1998-07-16 16:14       ` Zefram [this message]
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=199807161614.RAA32121@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).