in reply to Re^5: Writing to a file atomically without renaming
in thread Writing to a file atomically without renaming
trunc file. # this is where you have the race condition. redirects the data in backup_file to file. closes file
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: Writing to a file atomically without renaming
by Transient (Hermit) on Jul 01, 2005 at 02:45 UTC |