From 202c01ad18f1c7a07db256ade97b5fba4dd4dacf Mon Sep 17 00:00:00 2001 From: Aaron Jensen Date: Fri, 21 Sep 2018 08:10:39 -0700 Subject: [PATCH] fix: restart on change for non-default signals (#1409) Fixes #1409 --- lib/monitor/run.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/monitor/run.js b/lib/monitor/run.js index cd143477..4b2c0652 100644 --- a/lib/monitor/run.js +++ b/lib/monitor/run.js @@ -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;