From d817866eaba43078f6746ce05189f3dba836bf84 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Sat, 19 Sep 2015 16:04:55 +0100 Subject: [PATCH] fix: stdin was closed after crashed child Fixes #601 --- lib/monitor/run.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/monitor/run.js b/lib/monitor/run.js index 3f7414c8..988e7e9c 100644 --- a/lib/monitor/run.js +++ b/lib/monitor/run.js @@ -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(); + } } } });