Skip to content

Commit

Permalink
chore: Docker 运行时执行 ctrl+c 可以退出进程
Browse files Browse the repository at this point in the history
  • Loading branch information
xuexb committed May 22, 2022
1 parent fb2d18b commit ed62b4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/master.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const process = require('process');
process.on('SIGINT', () => {
process.exit(0);
});

0 comments on commit ed62b4e

Please sign in to comment.