This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/16285] thread-safe file locking (using lock file)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]