Created
November 8, 2011 21:57
-
-
Save igorzi/1349391 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 6a645ceddc7a8646f3935e9d9a6531bec79610bf Mon Sep 17 00:00:00 2001 | |
From: Igor Zinkovsky <igorzi@microsoft.com> | |
Date: Tue, 8 Nov 2011 13:57:20 -0800 | |
Subject: [PATCH] make stdio streams non-destroyable | |
--- | |
src/node.js | 1 + | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
diff --git a/src/node.js b/src/node.js | |
index a6788b3..d35d086 100644 | |
--- a/src/node.js | |
+++ b/src/node.js | |
@@ -268,6 +268,7 @@ | |
// For supporting legacy API we put the FD here. | |
stream.fd = fd; | |
+ stream.destroy = function() {}; // noop | |
return stream; | |
} | |
-- | |
1.7.4.msysgit.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment