zsh-users
 help / color / mirror / code / Atom feed
From: Todd Graham Lewis <tlewis@mindspring.net>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-users@math.gatech.edu
Subject: Re: rolling over high-traffic logfiles?
Date: Fri, 24 Jul 1998 19:42:35 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.3.96.980724194149.9246P-100000@reflections.eng.mindspring.net> (raw)
In-Reply-To: <980716082633.ZM15563@candle.brasslantern.com>

On Thu, 16 Jul 1998, Bart Schaefer wrote:

> On Jul 16,  9:36am, Zefram wrote:
> } Subject: Re: rolling over high-traffic logfiles?
> }
> } 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.

This is why kernel locking is such a big issue in SMP.  The semantics don't
change; rename() is always atomic under Unix.

--
Todd Graham Lewis                                     (800) 719-4664, x2804
******Linux******         MindSpring Enterprises      tlewis@mindspring.net


  parent reply	other threads:[~1998-07-24 23:54 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
1998-07-16 16:41         ` Nitin P Garg
1998-07-17  7:36           ` Jos Backus
1998-07-24 23:42       ` Todd Graham Lewis [this message]
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=Pine.LNX.3.96.980724194149.9246P-100000@reflections.eng.mindspring.net \
    --to=tlewis@mindspring.net \
    --cc=schaefer@brasslantern.com \
    --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).