public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Greg Turner <gmt@malth.us>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] [PATCH] econf: update configure/config.{sub,guess} atomically to avoid races
Date: Tue, 17 Dec 2013 18:53:00 -0800	[thread overview]
Message-ID: <CA+VB3NSX83OzigHC-6E9fdGV-1fzCtHhCHa6K-L6wD68xcUjFw@mail.gmail.com> (raw)
In-Reply-To: <CAAr7Pr-9s-_6UYQY_Wx+kn_1ktCD6ZfxSbF4WWiVXwX1u0VJaQ@mail.gmail.com>

On Tue, Dec 17, 2013 at 5:58 PM, Alec Warner <antarus@gentoo.org> wrote:
> Sed is already atomic
>
> antarus@goats5 /tmp/test $ cat foo
> Debian Rocks!
> antarus@goats5 /tmp/test $ strace -e trace=file sed -i -e
> 's/Debian/Gentoo/g' foo
[snip]
> open("foo", O_RDONLY)                   = 3
> open("/proc/filesystems", O_RDONLY)     = 4
> open("./sedfDxBxl", O_RDWR|O_CREAT|O_EXCL, 0600) = 4
> rename("./sedfDxBxl", "foo")            = 0

Nice demonstration!  Been wondering about that...

-gmt


  reply	other threads:[~2013-12-18  2:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-17 23:23 [gentoo-portage-dev] [PATCH] econf: update config.{sub,guess} atomically to avoid races Mike Frysinger
2013-12-17 23:28 ` [gentoo-portage-dev] [PATCH] econf: update configure/config.{sub,guess} " Mike Frysinger
2013-12-18  0:26   ` Brian Dolbec
2013-12-18  1:08     ` Alec Warner
2013-12-18  1:41   ` Greg Turner
2013-12-18  1:58     ` Alec Warner
2013-12-18  2:53       ` Greg Turner [this message]
2013-12-18  5:16         ` Alec Warner
2013-12-21  3:07   ` [gentoo-portage-dev] " Ryan Hill
2013-12-21  9:23     ` Mike Frysinger
2013-12-21  9:49     ` [gentoo-portage-dev] [PATCH] add a __bashpid helper for <bash-4.0 versions Mike Frysinger

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=CA+VB3NSX83OzigHC-6E9fdGV-1fzCtHhCHa6K-L6wD68xcUjFw@mail.gmail.com \
    --to=gmt@malth.us \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox