Skip to content

obs-util: Keep inherited stdin/stdout in Rust os_process_pipe (#485) - #710

Merged
zackees merged 2 commits into
masterfrom
fix/485-pipe-stdio-inherit
Oct 14, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/485-pipe-stdio-inherit

Conversation

@zackees

@zackees zackees commented Oct 14, 2026

Copy link
Copy Markdown
Member

Fixes #485
Refs #686

Fix by @chriscoveries (chriscoveries/obsrust-fork fix/pipe-stdio-inherit-parity), cherry-picked with -x, authorship kept. The change stays under rust/obs-util/src/platform/unix/.

The C os_process_pipe_create leaves the stream it does not pipe (stdin in read mode, stdout in write mode) inherited from the parent; the Rust port redirected it to /dev/null.

RED → GREEN

  • RED (rust/tools/linux-validate/run.sh): test_pipe_stdio_inherit passes with ENABLE_RUST_LIBOBS OFF (C) and fails ON (Rust): test_create_read_mode_inherits_stdin, test_create_write_mode_inherits_stdout, test_create2_read_mode_inherits_stdin, test_create2_write_mode_inherits_stdout.
  • GREEN: 199/199 OFF and ON, exported symbols IDENTICAL (1766). ./lint ok.

@zackees
zackees merged commit 97572de into master Oct 14, 2026
21 checks passed
@zackees
zackees deleted the fix/485-pipe-stdio-inherit branch October 14, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: libobs/util: with ENABLE_RUST_LIBOBS=ON, os_process_pipe_create drops the inherited standard stream on POSIX

2 participants