Date:        Tue, 1 Nov 2016 10:26:33 +0000
    From:        Geoff Clare <g...@opengroup.org>
    Message-ID:  <20161101102633.GA16610@lt.loopback>

  | If '>' with set -C is not atomic, then it cannot be relied on to perform
  | this function either. 

Depends what you believe "this function" really is - but it certainly is
not avoiding race conditions when two processes are attempting to create
the file at the same time.

What -C is (or should be) really for is avoiding accidentally writing
on top of (long existing) stable files (particularly ones that are hard
to re-create).

A non-atomic -C works just fine for that.

kre

Reply via email to