Skip to content

Instantly share code, notes, and snippets.

@igorzi igorzi/gist:1349391
Created Nov 8, 2011

Embed
What would you like to do?
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
You can’t perform that action at this time.