0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc/api
Ben Noordhuis 607aa3ac82 child_process: add callback parameter to .send()
Add an optional callback parameter to `ChildProcess.prototype.send()`
that is invoked when the message has been sent.

Juggle the control channel's reference count so that in-flight messages
keep the event loop (and therefore the process) alive until they have
been sent.

`ChildProcess.prototype.send()` and `process.send()` used to operate
synchronously but became asynchronous in commit libuv/libuv@393c1c5
("unix: set non-block mode in uv_{pipe,tcp,udp}_open"), which landed
in io.js in commit 07bd05b ("deps: update libuv to 1.2.1").

Fixes: https://github.com/nodejs/node/issues/760
PR-URL: https://github.com/nodejs/node/pull/2620
Reviewed-By: trevnorris - Trevor Norris <trev.norris@gmail.com>
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
2015-09-06 21:37:58 +10:00
..
_toc.markdown deps: update v8 to 4.4.63.9 2015-08-04 11:56:14 -07:00
addons.markdown node: rename from io.js to node 2015-08-23 17:59:43 -04:00
all.markdown deps: update v8 to 4.4.63.9 2015-08-04 11:56:14 -07:00
assert.markdown doc: update stability index 2015-02-27 14:23:01 -08:00
buffer.markdown doc: minor clarification in buffer.markdown 2015-08-27 18:08:13 +03:00
child_process.markdown child_process: add callback parameter to .send() 2015-09-06 21:37:58 +10:00
cluster.markdown child_process: add callback parameter to .send() 2015-09-06 21:37:58 +10:00
console.markdown doc: document Console class 2015-04-11 06:47:30 +02:00
crypto.markdown doc: minor grammatical update in crypto.markdown 2015-08-25 18:52:47 -07:00
debugger.markdown node: rename from io.js to node 2015-08-23 17:59:43 -04:00
dgram.markdown doc: port is optional for socket.bind() 2015-08-25 18:52:20 -07:00
dns.markdown node: rename from io.js to node 2015-08-23 17:59:43 -04:00
documentation.markdown node: rename from io.js to node 2015-08-23 17:59:43 -04:00
domain.markdown doc: small typo in domain.markdown 2015-08-25 18:52:05 -07:00
errors.markdown node: rename from io.js to node 2015-08-23 17:59:43 -04:00
events.markdown doc: make the deprecations consistent 2015-08-24 13:38:37 +05:30
fs.markdown doc: fix minor types and grammar in fs docs 2015-08-25 18:52:13 -07:00
globals.markdown doc: minor additional corrections and improvements 2015-08-25 18:52:52 -07:00
http.markdown doc: make the deprecations consistent 2015-08-24 13:38:37 +05:30
https.markdown node: rename from io.js to node 2015-08-23 17:59:43 -04:00
index.markdown
modules.markdown doc: fix bad merge on modules.markdown 2015-08-25 19:00:02 -07:00
net.markdown Revert "lib,src: add unix socket getsockname/getpeername" 2015-08-28 00:14:13 +02:00
os.markdown os: add homedir() 2015-06-05 22:58:14 -04:00
path.markdown doc: update path.extname documentation 2015-08-25 18:51:41 -07:00
process.markdown process: make process.release.name "node" 2015-08-23 17:59:43 -04:00
punycode.markdown node: rename from io.js to node 2015-08-23 17:59:43 -04:00
querystring.markdown doc: add explanations for querystring 2015-03-03 10:03:42 -05:00
readline.markdown node: rename from io.js to node 2015-08-23 17:59:43 -04:00
repl.markdown doc: code style cleanups in repl.markdown 2015-08-25 18:51:31 -07:00
stream.markdown doc: minor additional corrections and improvements 2015-08-25 18:52:52 -07:00
string_decoder.markdown doc: update stability index 2015-02-27 14:23:01 -08:00
synopsis.markdown node: additional cleanup for node rename 2015-08-23 17:59:43 -04:00
timers.markdown node: additional cleanup for node rename 2015-08-23 17:59:43 -04:00
tls.markdown doc: make the deprecations consistent 2015-08-24 13:38:37 +05:30
tty.markdown doc: make the deprecations consistent 2015-08-24 13:38:37 +05:30
url.markdown doc: state url decoding behavior 2015-05-25 13:50:53 +02:00
util.markdown doc: document deprecation of util.is* functions 2015-08-24 08:11:21 +05:30
v8.markdown node: rename from io.js to node 2015-08-23 17:59:43 -04:00
vm.markdown doc: fix vm module examples 2015-03-13 23:14:20 +01:00
zlib.markdown node: rename from io.js to node 2015-08-23 17:59:43 -04:00