Skip to content

Conversation

@OctopusET
Copy link

@OctopusET OctopusET commented Dec 25, 2025

QEMU user-mode emulation with glibc 2.34+ may return success from posix_spawn even when the child process fails to execute and exits immediately.

It's caused by QEMU's current implementation limitation.

Use try_wait() after spawn to detect this and fall back to stdout.

Related PR: BurntSushi/ripgrep#3248
Failed CI without this PR: https://github.com/OctopusET/bat/actions/runs/18910014240/job/53977874904

@OctopusET OctopusET force-pushed the fix-pager-spawn-qemu branch 4 times, most recently from 036e0c1 to 4a18088 Compare December 25, 2025 18:04
@OctopusET
Copy link
Author

OctopusET commented Dec 25, 2025

@OctopusET OctopusET force-pushed the fix-pager-spawn-qemu branch from 4a18088 to 3b09a28 Compare December 25, 2025 18:57
@OctopusET OctopusET marked this pull request as draft December 25, 2025 19:03
@OctopusET OctopusET force-pushed the fix-pager-spawn-qemu branch 3 times, most recently from f4fcf4a to d49acdd Compare December 25, 2025 19:37
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