Skip to content

fix(native-sidecar): close WASM pipe writers on child exit - #1963

Open
atirna wants to merge 1 commit into
rivet-dev:mainfrom
atirna:fix/wake-pipe-readers
Open

fix(native-sidecar): close WASM pipe writers on child exit#1963
atirna wants to merge 1 commit into
rivet-dev:mainfrom
atirna:fix/wake-pipe-readers

Conversation

@atirna

@atirna atirna commented Sep 5, 2026

Copy link
Copy Markdown

Summary

  • Release a WASM child's inherited pipe descriptors when its exit is observed.
  • Keep the exit event available to child_process.poll for the parent's later waitpid handling.

Fixes #1959

Why

Pipelines can now observe EOF after a writer exits instead of waiting for the blocking-read watchdog.

Verification

  • cargo test -p agentos-native-sidecar wasm_child_exit_closes_kernel_writer_before_parent_poll --lib
  • cargo fmt --check -- crates/native-sidecar/src/execution/child_process.rs

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.

Pipe reader is not woken on writer close: every | stage stalls for maxBlockingReadMs at EOF, then fails with EAGAIN

1 participant