From f6e05ce48f11e2c1d190d2681997c91b7088eea8 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Tue, 11 Nov 2025 23:18:42 -0700 Subject: [PATCH] Set appendOnly on stdout/stderr handles --- src/files.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/files.cpp b/src/files.cpp index dcd6270..fd87621 100644 --- a/src/files.cpp +++ b/src/files.cpp @@ -342,9 +342,11 @@ void init() { stdinHandle = handles.alloc(std::move(stdinObject), FILE_GENERIC_READ, 0); auto stdoutObject = make_pin(STDOUT_FILENO); stdoutObject->closeOnDestroy = false; + stdoutObject->appendOnly = true; stdoutHandle = handles.alloc(std::move(stdoutObject), FILE_GENERIC_WRITE, 0); auto stderrObject = make_pin(STDERR_FILENO); stderrObject->closeOnDestroy = false; + stderrObject->appendOnly = true; stderrHandle = handles.alloc(std::move(stderrObject), FILE_GENERIC_WRITE, 0); }