node/lib/internal
Brian White 12274a5c1b child_process: fix data loss with readable event
This commit prevents child process stdio streams from being
automatically flushed on child process exit/close if a 'readable'
event handler has been attached at the time of exit.

Without this, child process stdio data can be lost if the process
exits quickly and a `read()` (e.g. from a 'readable' handler)
hasn't had the chance to get called yet.

Fixes: https://github.com/nodejs/node/issues/5034
PR-URL: https://github.com/nodejs/node/pull/5036
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-02-11 10:47:36 -05:00
..
streams streams: refactor LazyTransform to internal/ 2015-09-14 19:58:04 -07:00
child_process.js child_process: fix data loss with readable event 2016-02-11 10:47:36 -05:00
cluster.js cluster: remove handles when disconnecting worker 2015-11-06 23:02:11 +01:00
freelist.js iojs: introduce internal modules 2015-03-25 22:12:18 +03:00
linkedlist.js lib,test: deprecate _linklist 2015-10-08 17:32:08 -07:00
module.js module: cache stat() results more aggressively 2016-01-12 12:35:11 -08:00
net.js net: move isLegalPort to internal/net 2016-01-30 17:53:55 -06:00
readline.js readline: deprecate undocumented exports 2015-11-19 17:01:25 -05:00
readme.md doc: add internal modules notice 2015-08-25 11:58:50 -04:00
repl.js repl: make sure historyPath is trimmed 2016-01-16 13:21:53 -06:00
socket_list.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
util.js module: always decorate thrown errors 2015-12-19 14:15:38 -05:00
v8_prof_polyfill.js tools: run tick processor without forking 2015-12-29 14:14:43 -08:00
v8_prof_processor.js tools: run tick processor without forking 2015-12-29 14:14:43 -08:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These are subject to change at any time. Reliance on these modules outside of core is not supported in any way.