mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-06 15:16:06 +00:00
types: added comments
This commit is contained in:
parent
fb69dbdb4f
commit
b662f472dd
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue