]> git.ipfire.org Git - thirdparty/git.git/commit
run-command: add first helper for pp child states
authorAdrian Ratiu <adrian.ratiu@collabora.com>
Thu, 18 Dec 2025 17:11:15 +0000 (19:11 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Dec 2025 04:46:26 +0000 (13:46 +0900)
commit8aebda8a8dfc3b36cbbae69078947d0f01ceee43
tree2e291426891540d4a8af2d004ec33f0660170d44
parent9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed
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