Skip to content

Commit ed62b4e

Browse files
committed
chore: Docker 运行时执行 ctrl+c 可以退出进程
1 parent fb2d18b commit ed62b4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/master.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const process = require('process');
2+
process.on('SIGINT', () => {
3+
process.exit(0);
4+
});

0 commit comments

Comments
 (0)