mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-06 07:06:02 +00:00
stream: use strings for signals instead of number
hopefully a little more explanatory than "9"
This commit is contained in:
parent
2bd8a0bccd
commit
fb69dbdb4f
|
@ -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