We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e35444a commit 551651bCopy full SHA for 551651b
index.js
@@ -57,6 +57,6 @@ if (process.platform === "win32") {
57
}
58
} else {
59
exports.isService = function () {
60
- return fs.fstatSync(0).isSocket();
+ return fs.fstatSync(process.stdin.fd).isSocket();
61
62
lib/server.js
@@ -111,7 +111,7 @@ Server.prototype.listen = function (callback) {
111
return net.Server.prototype.listen.apply(this, arguments);
112
113
114
- return net.Server.prototype.listen.call(this, { fd: 0 }, callback);
+ return net.Server.prototype.listen.call(this, process.stdin, callback);
115
};
116
117
Server.prototype.setTimeout = function (msecs, callback) {
0 commit comments