mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-28 12:30:12 +02: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…
x
Reference in New Issue
Block a user