stream: use strings for signals instead of number

hopefully a little more explanatory than "9"
This commit is contained in:
dumbmoron 2023-11-06 00:31:44 +00:00
parent 58f7ed7827
commit 33072003bc
No known key found for this signature in database
GPG key ID: C59997C76C6A8E5F

View file

@ -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);
}