6 Commits
Author SHA1 Message Date
Dean a0f41999af Merge pull request #17757 from pushkarreddyy/fix/libc-log-sink-shared-module
fix(libc): share LogSink and timestamp clock across modules on Windows
2026-11-12 18:01:44 +13:00
pushkarreddyy 4418d88e1e fix(libc): share LogSink and timestamp clock across modules 2026-11-11 18:15:31 +05:30
JJenkx 2461e8c8e5 fix(libc): preserve signal state in Linux crash reports 2026-11-01 06:32:42 -05:00
AdriàandClaude Sonnet 5.5 c34be59076 fix(libc): keep a log line longer than the carry whole in the ANYPS5_LOG_FILE copy
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 05:57:24 +01:00
MarcZX10 9b25533ecc refactor(libc): declare the log file flush and release beside the other shutdown hooks
The code that ends or replaces the process already includes Shutdown.hpp,
so LogFileFlush_nid_no_patch and LogFileRelease_nid_no_patch are declared
there instead of in LogFile.hpp, which only the log copy and its test
include.
2026-10-29 05:57:24 +01:00
MarcZX10 4b1e69ac96 feat(libc): copy the runtime log into the file named by ANYPS5_LOG_FILE
The log a user attaches to a bug report is only on the terminal. When
ANYPS5_LOG_FILE is set and not empty, libc now opens the file for
appending at load, diverts standard output and standard error into two
pipes and starts one thread per pipe that writes every byte to the
original stream at once and every whole line to the file. A lock makes
the file lines atomic across the two streams, a partial line waits for its
newline, and a file that can no longer be written is reported once while
the terminal output goes on. An unopenable file prints an error naming
ANYPS5_LOG_FILE, the path and the operating system error, and ends the
process with status 1. Unset or empty creates no thread, pipe or
descriptor. Crash reporters and exit paths are not wired yet.
2026-10-29 05:57:24 +01:00