make stdout stream non-destroyable
authorIgor Zinkovsky <igorzi@microsoft.com>
Wed, 9 Nov 2011 23:04:44 +0000 (15:04 -0800)
committerIgor Zinkovsky <igorzi@microsoft.com>
Wed, 9 Nov 2011 23:04:44 +0000 (15:04 -0800)
src/node.js

index 82ad356..f24a92e 100644 (file)
     process.__defineGetter__('stdout', function() {
       if (stdout) return stdout;
       stdout = createWritableStdioStream(1);
+      stdout.end = stdout.destroy = stdout.destroySoon = function() { };
       return stdout;
     });