Files
Ben Noordhuis 201a706f9a lib: fix stdio/ipc sync i/o regression
process.send() should be synchronous, it should block until the message
has been sent in full, but it wasn't after the second-to-last libuv
upgrade because of commit libuv/libuv@393c1c5 ("unix: set non-block
mode in uv_{pipe,tcp,udp}_open"), which made its way into io.js in
commit 07bd05b ("deps: update libuv to 1.2.1").

Commit libuv/libuv@b36d4ff ("unix: implement uv_stream_set_blocking()")
as landed in io.js in commit 9681fca ("deps: update libuv to 1.4.0")
makes it possible to restore the synchronous behavior again and that's
precisely what this commit does.

The same line of reasoning applies to `net.Socket({ fd: 1 })`: creating
a socket object from a stdio file descriptor, like the `process.stdout`
getter does, should put the file descriptor in blocking mode for
compatibility reasons.

PR-URL: https://github.com/iojs/io.js/pull/774
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
2015-03-17 13:42:39 -06:00
..
2011-03-14 17:37:05 -07:00
2011-03-14 17:37:05 -07:00
2014-06-11 20:41:12 -07:00
2015-02-12 14:37:30 -07:00
2015-03-17 13:42:39 -06:00
2013-03-28 13:19:08 -07:00
2015-01-15 14:59:36 -08:00
2014-12-05 04:33:26 -08:00
2012-06-28 10:14:03 -07:00
2014-09-16 12:28:47 -07:00