Skip to content

Commit 29cf71e

Browse files
committed
fix: stdin was closed after crashed child
Fixes #601
1 parent 72acf9b commit 29cf71e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/monitor/run.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ function run(options) {
161161
utils.log.fail('app crashed - waiting for file changes before' +
162162
' starting...');
163163
child = null;
164+
if (config.options.restartable) {
165+
// stdin needs to kick in again to be able to listen to the
166+
// restart command
167+
process.stdin.resume();
168+
}
164169
}
165170
}
166171
});

0 commit comments

Comments
 (0)