Skip to content

sapi/cli/tests: use kill -0 in pdeathsig test - #24413

Open
Sjord wants to merge 1 commit into
php:PHP-8.4from
Sjord:portable-pdeathsig-test
Open

Sjord wants to merge 1 commit into
php:PHP-8.4from
Sjord:portable-pdeathsig-test

Conversation

@Sjord

@Sjord Sjord commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

BusyBox ps, as used on Alpine, does not support -p. Check whether the worker processes still exist with the POSIX kill -0 builtin instead. The poll loop already waits for the workers to disappear, so transient zombies are handled.

Use command -v instead of which to detect pgrep, and skip when shell_exec() is unavailable.

BusyBox ps, as used on Alpine, does not support -p. Check whether the
worker processes still exist with the POSIX kill -0 builtin instead.
The poll loop already waits for the workers to disappear, so transient
zombies are handled.

Use command -v instead of which to detect pgrep, and skip when
shell_exec() is unavailable.
@Sjord
Sjord marked this pull request as ready for review October 18, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant