]> 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>
Sun, 28 Dec 2025 05:02:06 +0000 (14:02 +0900)
commit56cef1e504d7d111b4acb588dfa1a12e5ab550b9
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