types: added comments

This commit is contained in:
wukko 2023-11-06 06:44:34 +06:00 committed by dumbmoron
parent fb69dbdb4f
commit b662f472dd
No known key found for this signature in database
GPG key ID: C59997C76C6A8E5F

View file

@ -16,9 +16,11 @@ function closeResponse(res) {
}
function killProcess(p) {
// ask the process to terminate itself gracefully
p?.kill('SIGTERM');
setTimeout(() => {
if (p?.exitCode === null)
// brutally murder the process if it didn't quit
p?.kill('SIGKILL');
}, 5000);
}