mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-12 20:25:06 +01:00
stream: use strings for signals instead of number
hopefully a little more explanatory than "9"
This commit is contained in:
parent
58f7ed7827
commit
33072003bc
1 changed files with 2 additions and 2 deletions
|
@ -16,10 +16,10 @@ function closeResponse(res) {
|
|||
}
|
||||
|
||||
function killProcess(p) {
|
||||
p?.kill();
|
||||
p?.kill('SIGTERM');
|
||||
setTimeout(() => {
|
||||
if (p?.exitCode === null)
|
||||
p?.kill(9);
|
||||
p?.kill('SIGKILL');
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue