[Bug libc/16285] thread-safe file locking (using lock file)
bugdal at aerifal dot cx
sourceware-bugzilla@sourceware.org
Tue Dec 3 04:04:00 GMT 2013
https://sourceware.org/bugzilla/show_bug.cgi?id=16285
--- Comment #3 from Rich Felker <bugdal at aerifal dot cx> ---
Normally for this kind of thing, you write into a unique temporary file and
rename (which is atomic) to the actual name only when the file is complete.
This avoids all the issues you're concerned about, I believe.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list