Report failure when gtavi-probe cannot write its output #35
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/JamesCicada--GTAVI-Recomp!35
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-35"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@RavenCurseBurg on GitHub · 2026-11-26 07:28 UTC · original
RavenCurseBurg:fix/probe-output-status→main· +28 −6 · 3 files · 1 commits · openA caller could receive exit status 0 after the probe lost its host report or translated path. A short redirected write can fit in the C stdio buffer and fail only at exit, after the probe has chosen its result.
The probe now flushes stdout and checks its error indicator before returning. A failed write produces a diagnostic on stderr and status 1. An existing usage error retains status 2.
Verification
mainfor the default report, help and a single translation. Each now returns 1. A 14,490-byte report still detects the failure and an invalid option still returns 2./dev/fulland checks both status 1 and the diagnostic.AI-assisted with Codex + GPT-6.2 Astra (xhigh).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.