]> git.ipfire.org Git - thirdparty/git.git/commit
fsm-health-win32: add polling framework to monitor daemon health
authorJeff Hostetler <jeffhost@microsoft.com>
Thu, 26 May 2022 21:47:11 +0000 (21:47 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 May 2022 22:59:27 +0000 (15:59 -0700)
commit90a70fa80964e7d582fb8df2c0115da79d13f5ab
tree561b209bac999ac667accc9baccfff7aa0b891c4
parentd06055501b0d31c417f8cbd237efb48065256d83
fsm-health-win32: add polling framework to monitor daemon health

Extend the Windows version of the "health" thread to periodically
inspect the system and shutdown if warranted.

This commit updates the thread's wait loop to use a timeout and
defines a (currently empty) table of functions to poll the system.

A later commit will add functions to the table to actually
inspect the system.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/fsmonitor/fsm-health-win32.c