Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Just noticed this when reading the code; our cap-std-ext crate has a handy `atomic_write` API which streamlines exactly this use case. This avoids having a corrupted/half-written facts file if our process is interrupted, and also avoids a case where a reading process may temporarily see a half written file. Signed-off-by: Colin Walters <[email protected]>
- Loading branch information