Skip to content

Fix Nix tests signaling PID 1 - #1827

Open
mirsella wants to merge 2 commits into
raphamorim:mainfrom
mirsella:fix-nix-dead-context-sighup
Open

mirsella wants to merge 2 commits into
raphamorim:mainfrom
mirsella:fix-nix-dead-context-sighup

Conversation

@mirsella

@mirsella mirsella commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

The context tests use a dead PTY with PID 1. Dropping it sent SIGHUP to PID 1, which kills the Nix sandbox and makes the build exit with code 129.

The first commit fixes this by leaving PTY child cleanup to the performer, which already owns it.

The second commit cleans up PTY process state and removes duplicate platform-specific code. It is optional and can be dropped if you would rather keep the fix minimal.

Tests:

cargo +nightly test -p rioterm -p librio -p teletypewriter

cargo +nightly check --workspace --all-targets

@mirsella
mirsella force-pushed the fix-nix-dead-context-sighup branch 3 times, most recently from 09c2fe1 to 3b0e504 Compare August 9, 2026 12:27
@mirsella
mirsella force-pushed the fix-nix-dead-context-sighup branch from 3b0e504 to 8057fce Compare August 21, 2026 16:27
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.

1 participant