Files
node/lib
Matteo Collina d82bedcb7b console: avoid adding infinite error listeners
If the console destination is a unix pipe (net.Socket), write() is
async. If the destination is broken, we are adding an 'error' event
listener to avoid a process crash. This PR makes sure that we are adding
that listener only once.

Fixes: https://github.com/nodejs/node/issues/16767

PR-URL: https://github.com/nodejs/node/pull/16770
Fixes: https://github.com/nodejs/node/issues/16767
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
2017-11-08 11:22:44 +00:00
..
2017-10-19 13:54:14 -04:00
2017-08-28 00:39:42 +04:00
2017-10-26 15:47:29 -07:00
2017-10-31 09:14:19 -07:00
2017-10-19 13:54:14 -04:00
2016-10-04 12:17:32 -04:00
2017-11-07 19:51:51 +01:00
2017-03-10 11:23:48 -08:00
2017-10-23 17:17:16 +02:00