Skip to content

Commit

Permalink
closes #457
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Nov 5, 2017
1 parent 1d630f9 commit 9051e84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ v8flags(function (err, v8flags) {
{ stdio: 'inherit' }
)

// trap SIGINT. prevents main process from finishing
// before the child one does
process.once('SIGINT', () => {});

proc.on('exit', function (code: number, signal: string) {
process.on('exit', function () {
if (signal) {
Expand Down

0 comments on commit 9051e84

Please sign in to comment.