On Thu, Feb 21, 2013 at 6:17 PM, Gustavo Machado <[email protected]> wrote:
> Hi,
>
> In turned out to be the process.stdout. Apart from reducing the console.logs 
> to a minimum, we are planning to use epipebomb to avoid the process to crash 
> under heavy load. Is there any way to re-open the connection to the 
> console.log after it's been EPIPE'd ?
>
> Thanks,
>
> Gustavo Machado
> [email protected]

What is process.stdout pointing to (tty, pipe, file)?

To answer your question about reopening process.stdout, you could do
something like this:

  var fd = fs.openSync('/dev/tty', 'w');
  process.stdout = new net.Socket({ fd: fd });

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to