Skip to content

Kill processes after a grace period

John Cai requested to merge jc/kill-git-processes into master

There have been cases where zombie Git processes lie around for days and sometimes weeks.

We want to make sure that processes get killed when the context is cancelled. While we already send a SIGTERM signal to processes when the context is cancelled, some commands do not exit with SIGTERM and instead need a SIGKILL. This MR adds functionality that allows commands to, if passed the option, run a function that will wait some number of time before sending a SIGKILL to the process.

fixes: #3976

Edited by John Cai

Merge request reports