Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix pager spawn under QEMU user-mode emulation#3531

Open
OctopusET wants to merge 1 commit intosharkdp:masterfrom
OctopusET:fix-pager-spawn-qemu
Open

Fix pager spawn under QEMU user-mode emulation#3531
OctopusET wants to merge 1 commit intosharkdp:masterfrom
OctopusET:fix-pager-spawn-qemu

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 4 times, most recently from d49acdd to 75c44a1 Compare December 25, 2025 19:52
@OctopusET OctopusET marked this pull request as ready for review December 25, 2025 21:06
@OctopusET OctopusET force-pushed the fix-pager-spawn-qemu branch from 75c44a1 to c3f03e9 Compare February 27, 2026 14:17
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