From 12cab3215689a8217f6dcaf905dc6008dc3a4b4a Mon Sep 17 00:00:00 2001 From: dgilling Date: Mon, 2 May 2016 18:07:09 -0700 Subject: [PATCH] Fix: ISSNode does not bind to stdin Ignore if running within IISNode --- lib/exception.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/exception.js b/lib/exception.js index 5c63b0c..656a88e 100644 --- a/lib/exception.js +++ b/lib/exception.js @@ -57,8 +57,10 @@ module.exports = { process.exit(1); }; - // Start reading from stdin so we don't exit instantly - process.stdin.resume(); + // Start reading from stdin so we don't exit instantly, ISSNode does not bind to stdin + if (!process.env.IISNODE_VERSION) { + process.stdin.resume(); + } process.on('exit', function () { if (!exit) {