Skip to content

Commit f1c05a3

Browse files
committed
Merge pull request #13 from dgilling/master
Fix: Stdin error due to IISNODE does not bind to stdin.
2 parents 108d5ac + 12cab32 commit f1c05a3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/exception.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ module.exports = {
5757
process.exit(1);
5858
};
5959

60-
// Start reading from stdin so we don't exit instantly
61-
process.stdin.resume();
60+
// Start reading from stdin so we don't exit instantly, ISSNode does not bind to stdin
61+
if (!process.env.IISNODE_VERSION) {
62+
process.stdin.resume();
63+
}
6264

6365
process.on('exit', function () {
6466
if (!exit) {

0 commit comments

Comments
 (0)