types: added comments
This commit is contained in:
parent
33072003bc
commit
758bb8fef7
1 changed files with 2 additions and 0 deletions
|
@ -16,9 +16,11 @@ function closeResponse(res) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function killProcess(p) {
|
function killProcess(p) {
|
||||||
|
// ask the process to terminate itself gracefully
|
||||||
p?.kill('SIGTERM');
|
p?.kill('SIGTERM');
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (p?.exitCode === null)
|
if (p?.exitCode === null)
|
||||||
|
// brutally murder the process if it didn't quit
|
||||||
p?.kill('SIGKILL');
|
p?.kill('SIGKILL');
|
||||||
}, 5000);
|
}, 5000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue