Skip to content

Identify the PHP-FPM master by parentage, not cmdline - #183

Merged
nickschuch merged 1 commit into
mainfrom
correctness-fpm-discovery-ppid
Sep 4, 2026
Merged

Identify the PHP-FPM master by parentage, not cmdline#183
nickschuch merged 1 commit into
mainfrom
correctness-fpm-discovery-ppid

Conversation

@nickschuch

Copy link
Copy Markdown
Contributor

Match the php-fpm process with no php-fpm parent rather than scanning the command line for "master process", which any invocation containing those words satisfied. A Ppid read error is now logged and the process skipped instead of the Cmdline error being silently dropped. Add findMasterProcess with a mock-process seam and unit tests; note in the Node discovery why its first-match is safe.

Match the php-fpm process with no php-fpm parent rather than scanning the command line for "master process", which any invocation containing those words satisfied. A Ppid read error is now logged and the process skipped instead of the Cmdline error being silently dropped. Add findMasterProcess with a mock-process seam and unit tests; note in the Node discovery why its first-match is safe.
@nickschuch
nickschuch merged commit 2837a16 into main Sep 4, 2026
5 checks passed
@nickschuch
nickschuch deleted the correctness-fpm-discovery-ppid branch September 4, 2026 06:54
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