We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9ea083 commit c40c04dCopy full SHA for c40c04d
2 files changed
CHANGELOG.md
@@ -1,3 +1,7 @@
1
+# 0.2.2
2
+
3
+Fix: properly exit when receiving SIGTERM or SIGINT
4
5
# 0.2.1
6
7
No changes (fix the publishing workflow)
src/run.ts
@@ -27,8 +27,8 @@ async function main() {
27
const evHandler = () => {
28
s.close();
29
};
30
- s.on("SIGTERM", evHandler);
31
- s.on("SIGINT", evHandler);
+ process.on("SIGTERM", evHandler);
+ process.on("SIGINT", evHandler);
32
33
console.error(`Listening on port ${cfg.port}`);
34
}
0 commit comments