]> git.ipfire.org Git - thirdparty/git.git/commit
run-command: add first helper for pp child states
authorAdrian Ratiu <adrian.ratiu@collabora.com>
Fri, 26 Dec 2025 12:23:24 +0000 (14:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Jan 2026 21:10:29 +0000 (13:10 -0800)
commitce3ae8073d190174028364fcd9af405b57795fb2
tree03b52f1285ec1000eec42f067cc1c9d072ed4b2a
parenta3d1f391d35762162356201028fb73774a6c4a8b
run-command: add first helper for pp child states

There is a recurring pattern of testing parallel process child states
and file descriptors to determine if a child is running, receiving any
input or if it's ready for cleanup.

Name the pp_child structure and introduce a first helper to make these
checks more readable. Next commits will add more helpers and checks.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
run-command.c