molluskandClaude Opus 4.8 e3b63c0856 fix: make log_msg writes atomic
Each log_msg opened the file in O_APPEND mode then used writeln!, which
issues a separate write() syscall per formatting fragment. O_APPEND only
guarantees atomicity per write() call, so concurrent log_msg calls from
the app's many threads/tasks could interleave their fragments mid-line.

Format the full line (timestamp + msg + newline) into one String, then
emit it with a single write_all so each log line lands as one atomic
append. No behavior change beyond non-interleaved output.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-01 15:43:08 -04:00
2026-06-01 05:08:25 -04:00
2026-06-01 15:43:08 -04:00
2026-05-29 15:36:55 -04:00
2026-05-29 15:36:55 -04:00
S
Description
No description provided
MIT
16 MiB
2026-08-22 19:08:47 +00:00
Languages
Rust 98.8%
Shell 0.4%
Nix 0.4%
Inno Setup 0.2%
Python 0.2%