4 ms·
Using rename() does this for you. It's actually guaranteed to preserve the contents of the old file for any process still having it open while atomically lettin
by larschdk 6y ago
Using rename() does this for you. It's actually guaranteed to preserve the contents of the old file for any process still having it open while atomically letting any future process only see the new file.