Skip to content

Commit

Permalink
fix: stdin was closed after crashed child
Browse files Browse the repository at this point in the history
Fixes #601
  • Loading branch information
remy committed Sep 19, 2015
1 parent bb17060 commit d817866
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/monitor/run.js
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 d817866

Please sign in to comment.