This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16285] thread-safe file locking (using lock file)
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 03 Dec 2013 04:04:32 +0000
- Subject: [Bug libc/16285] thread-safe file locking (using lock file)
- Auto-submitted: auto-generated
- References: <bug-16285-131 at http dot sourceware dot org/bugzilla/>
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.