Skip to content

Commit

Permalink
fix(cli): use child.kill to send sigint
Browse files Browse the repository at this point in the history
  • Loading branch information
Anillc committed Jun 27, 2022
1 parent 16ae7a0 commit 50d090a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let child: ChildProcess

process.on('SIGINT', () => {
if (child) {
child.emit('SIGINT')
child.kill('SIGINT')
} else {
process.exit()
}
Expand Down

0 comments on commit 50d090a

Please sign in to comment.