Skip to content

Commit f7df583

Browse files
committed
Fix Ctrl-C in Docker
1 parent beab64f commit f7df583

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,11 @@ const run = async () => {
106106
await sleep(Math.floor(config.checkInterval * 60))
107107
}
108108
}
109+
109110
process.title = "dddd"
111+
process.on("SIGINT", () => {
112+
console.info("Caught an interrupt")
113+
process.exit()
114+
})
115+
110116
run()

0 commit comments

Comments
 (0)