Re:Appending to a file from multiple processes
by catern on Friday August 05, 2016 @10:23PM
(#12236748)
I don't believe what you're describing works. You're suggesting reading first the size of a record (stored itself in a fixed-size field), then reading the rest of it?
But unfortunately that is not atomic. Another process could read into the data between your first and second reads.
But unfortunately that is not atomic. Another process could read into the data between your first and second reads.