Skip to content

Commit

Permalink
fix: stdin was closed after crashed child
Browse files Browse the repository at this point in the history
Fixes remy#601
  • Loading branch information
remy committed Oct 19, 2015
1 parent 72acf9b commit 29cf71e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/monitor/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ function run(options) {
utils.log.fail('app crashed - waiting for file changes before' +
' starting...');
child = null;
if (config.options.restartable) {
// stdin needs to kick in again to be able to listen to the
// restart command
process.stdin.resume();
}
}
}
});
Expand Down

0 comments on commit 29cf71e

Please sign in to comment.