Repository navigation
Fix redirect stdout and stderror to the same file overlapping - #41611
Merged
Feng Wang (chemwolf6922) merged 3 commits intoSep 17, 2026
Merged
Feng Wang (chemwolf6922) merged 3 commits into
Feng Wang (chemwolf6922) merged 3 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The fix and regression coverage address the reported merged-output issue.
Pull request overview
This PR prevents overlapping writes when stdout and stderr are redirected to the same file and adds regression coverage.
Changes:
- Uses append-mode relay writes.
- Adds merged-output regression testing.
File summaries
| File | Description |
|---|---|
test/windows/UnitTests.cpp |
Adds merged stdout/stderr output coverage. |
src/windows/common/relay.cpp |
Prevents overlapping relay writes. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The critical relay offset behavior issue must be addressed before approval.
Get a fresh assessment by requesting another Copilot review.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
Blue (OneBlue)
previously approved these changes
Sep 15, 2026
Blue (OneBlue)
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, minor comment
Blue (OneBlue)
approved these changes
Sep 16, 2026
Feng Wang (chemwolf6922)
deleted the
user/chemwolf6922/fix-mreged-stdout-and-stderr-to-a-file-overlaps
branch
September 17, 2026 02:15
Summary of the Pull Request
Currently the stdout and stderr relay tracks the output offset separately. And when redirected to the same file, the writes could overlap.
This PR uses the append mode for overlap io writes instead of the separate offsets in the relay. So, the file write offset is correctly tracked by the system.
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed
Add test:
UnitTests::UnitTests::MergedOutputFileOffsets