Skip to content

Simplify Process.run polling - #1280

Merged
nicolas-abril merged 1 commit into
bendlang:mainfrom
toprameen:simplify-process-polling
Oct 5, 2026
Merged

nicolas-abril merged 1 commit into
bendlang:mainfrom
toprameen:simplify-process-polling

Conversation

@toprameen

Copy link
Copy Markdown
Contributor

Process.run compacted active descriptors into a polling array and tracked their pipe roles in a separate array. It now keeps stdin, stdout, stderr, and child-exit notification in fixed slots, relying on poll to ignore inactive descriptors (-1).

This removes the descriptor count and role mapping while preserving child-exit priority and the existing pipe handling.

Local checks: both native process tests pass. The original and updated implementations matched across 256 polling comparisons and 12 subprocess scenarios.

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.

2 participants