Skip to content

fix: rita returns "error: -13" when the next program in a pipeline closes and... - #847

Open
Roshan931 wants to merge 1 commit into
activecm:mainfrom
Roshan931:prilog/fix-error-unhandled-sigpipe-kills-rita-when-its-08-21-2026-f40380
Open

fix: rita returns "error: -13" when the next program in a pipeline closes and...#847
Roshan931 wants to merge 1 commit into
activecm:mainfrom
Roshan931:prilog/fix-error-unhandled-sigpipe-kills-rita-when-its-08-21-2026-f40380

Conversation

@Roshan931

Copy link
Copy Markdown

Fixes #803

Root cause

Unhandled SIGPIPE kills rita when its stdout pipe closes

Changes

  • Install a SIGPIPE notification handler in main so writes to a closed stdout/stderr return EPIPE instead of terminating rita with signal 13, and add a regression test that runs a child process whose stdout pipe is closed mid-write and asserts it still exits cleanly.

@Roshan931
Roshan931 requested a review from a team as a code owner August 21, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rita returns "error: -13" when the next program in a pipeline closes and it can't write a line of output.

1 participant