mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-29 21:10:14 +02: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
@ -16,10 +16,10 @@ function closeResponse(res) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function killProcess(p) {
|
function killProcess(p) {
|
||||||
p?.kill();
|
p?.kill('SIGTERM');
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (p?.exitCode === null)
|
if (p?.exitCode === null)
|
||||||
p?.kill(9);
|
p?.kill('SIGKILL');
|
||||||
}, 5000);
|
}, 5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user