make stdout stream non-destroyable

v0.7.4-release
Igor Zinkovsky 2011-11-09 15:04:44 -08:00
parent 5d89540b77
commit f84d86b660
1 changed files with 1 additions and 0 deletions

View File

@ -278,6 +278,7 @@
process.__defineGetter__('stdout', function() { process.__defineGetter__('stdout', function() {
if (stdout) return stdout; if (stdout) return stdout;
stdout = createWritableStdioStream(1); stdout = createWritableStdioStream(1);
stdout.end = stdout.destroy = stdout.destroySoon = function() { };
return stdout; return stdout;
}); });