]> git.ipfire.org Git - thirdparty/git.git/commit
run-command: add helper for pp child states
authorAdrian Ratiu <adrian.ratiu@collabora.com>
Wed, 28 Jan 2026 21:39:17 +0000 (23:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Jan 2026 23:47:02 +0000 (15:47 -0800)
commitdee82860688cdcd35cbf0ce7e74736e473c5b697
treec8c1608cd1d05014b661edf4e6ec6ecf12cbd8e9
parentc9ef360403e0f64a5d4c70f66a9b25f02a98fda6
run-command: add 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 helper to make the checks
more readable.

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