Skip to content

Instantly share code, notes, and snippets.

@igorzi
Created November 8, 2011 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorzi/1349391 to your computer and use it in GitHub Desktop.
Save igorzi/1349391 to your computer and use it in GitHub Desktop.
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