in reply to Re: Read in hostfile, modify, output
in thread Read in hostfile, modify, output
There is no truly "atomic" operation on the file system
From the Open Group Specification of rename:
That specification requires that the action of the function be atomicThat is, the rename(1) system call is required to be atomic on all Unix systems. As tye points out, rename is also atomic on Windows.
In practice, on Unix and Windows, so long as both files reside on the same OS file system, you should be able to rely on the Perl rename function being atomic.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Read in hostfile, modify, output
by Marshall (Canon) on Dec 20, 2016 at 22:48 UTC | |
by Anonymous Monk on Dec 20, 2016 at 23:14 UTC | |
by Marshall (Canon) on Dec 21, 2016 at 00:41 UTC | |
by eyepopslikeamosquito (Archbishop) on Dec 21, 2016 at 19:19 UTC | |
by Marshall (Canon) on Dec 22, 2016 at 20:25 UTC | |
by eyepopslikeamosquito (Archbishop) on Dec 23, 2016 at 23:04 UTC | |
by Anonymous Monk on Dec 21, 2016 at 01:13 UTC | |
by Marshall (Canon) on Dec 21, 2016 at 01:27 UTC | |
| |
by Anonymous Monk on Dec 21, 2016 at 10:27 UTC |