Skip to content

Commit

Permalink
fix: restart on change for non-default signals (#1409)
Browse files Browse the repository at this point in the history
Fixes #1409
  • Loading branch information
aaronjensen committed Sep 21, 2018
1 parent e7d9e87 commit 202c01a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/monitor/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,9 @@ function run(options) {
process.stdin.unpipe(child.stdin);
}

if (utils.isWindows) {
// For the on('exit', ...) handler above the following looks like a
// crash, so we set the killedAfterChange flag
killedAfterChange = true;
}
// For the on('exit', ...) handler above the following looks like a
// crash, so we set the killedAfterChange flag
killedAfterChange = true;

/* Now kill the entire subtree of processes belonging to nodemon */
var oldPid = child.pid;
Expand Down

0 comments on commit 202c01a

Please sign in to comment.