]> git.kaiwu.me - haproxy.git/commit
MINOR: mworker/cli: only keep positive PIDs in proc_list
authorAlexander Stephan <alexander.stephan@sap.com>
Thu, 11 Dec 2025 10:00:11 +0000 (10:00 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 5 Jan 2026 07:59:14 +0000 (08:59 +0100)
commitc30eeb29677aa098a4a3d2cc449681b40e465475
tree20cf519caf4f9a60ee3fd76e739c36702941dd8e
parent6970c8b8b687a9be46ce73c707f7d7bf78ed0c65
MINOR: mworker/cli: only keep positive PIDs in proc_list

Change mworker_env_to_proc_list() to if (child->pid > 0) before
LIST_APPEND, avoiding invalid PIDs (0/-1) in the process list.
This has no functional impact beyond stricter validation and it aligns
with existing kill safeguards.
src/mworker.c