Re: How to safely maintain a status file

Discussion in 'Python' started by Ross Ridge, Jul 12, 2012.

  1. Ross Ridge

    Ross Ridge Guest

    Laszlo Nagy:
    > This is not a contradiction. Although the rename operation is atomic,
    > the whole "change status" process is not. It is because there are two
    > operations: #1 delete old status file and #2. rename the new status
    > file. And because there are two operations, there is still a race
    > condition. I see no contradiction here.


    Christian Heimes <> wrote:
    >Sorry, but you are wrong. It's just one operation that boils down to
    >"point name to a different inode".


    For some reason you're assuming POSIX semantics, an assumption that
    Laszlo Nagy did not make.

    Ross Ridge

    --
    l/ // Ross Ridge -- The Great HTMU
    [oo][oo]
    -()-/()/ http://www.csclub.uwaterloo.ca/~rridge/
    db //
    Ross Ridge, Jul 12, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Richard Baron Penman

    How to safely maintain a status file

    Richard Baron Penman, Jul 8, 2012, in forum: Python
    Replies:
    0
    Views:
    175
    Richard Baron Penman
    Jul 8, 2012
  2. Dennis Lee Bieber

    Re: How to safely maintain a status file

    Dennis Lee Bieber, Jul 8, 2012, in forum: Python
    Replies:
    1
    Views:
    167
    Plumo
    Jul 9, 2012
  3. Laszlo Nagy

    Re: How to safely maintain a status file

    Laszlo Nagy, Jul 8, 2012, in forum: Python
    Replies:
    1
    Views:
    203
    Nobody
    Jul 9, 2012
  4. Plumo
    Replies:
    1
    Views:
    192
    Michael Hrivnak
    Jul 9, 2012
  5. Plumo
    Replies:
    1
    Views:
    199
    Laszlo Nagy
    Jul 12, 2012
Loading...

Share This Page