We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d0f4f8 commit ace2665Copy full SHA for ace2665
jsr.json
@@ -1,5 +1,5 @@
1
{
2
"name": "@timepp/ev",
3
- "version": "0.1.3",
+ "version": "0.1.4",
4
"exports": "./launch.ts"
5
}
launch.ts
@@ -50,9 +50,16 @@ async function main() {
50
await apiImpl.cleanUp()
51
52
53
+ let sigIntCount = 0
54
Deno.addSignalListener('SIGINT', () => {
- console.log('SIGINT received, shutting down backend')
55
- backend.shutdown()
+ sigIntCount++
56
+ if (sigIntCount > 1) {
57
+ console.log('SIGINT received again, force exit')
58
+ Deno.exit(1)
59
+ } else {
60
+ console.log('SIGINT received, shutting down backend')
61
+ backend.shutdown()
62
+ }
63
})
64
65
await backend.finished
0 commit comments