fix(closing): another part of closing fixes

This commit is contained in:
Alexey Kasyanchuk
2018-08-15 03:14:55 +03:00
parent 2a8f06047b
commit e3fd5a4c84
3 changed files with 19 additions and 13 deletions

View File

@ -103,4 +103,8 @@ process.on("SIGINT", () => {
{
process.exit()
}
});
process.on("SIGTERM", () => {
process.emit("SIGINT");
});