diff options
author | Alexis Campailla <alexis@janeasystems.com> | 2014-02-26 15:03:59 +0100 |
---|---|---|
committer | Timothy J Fontaine <tjfontaine@gmail.com> | 2014-02-26 10:36:58 -0800 |
commit | 20176a98416353d4596900793f739d5ebf4f0ee1 (patch) | |
tree | 70c9765fd8b736fe144522014afc825eef8dff53 /src/pipe_wrap.cc | |
parent | c1bb88699058011cce8df12a5cf39354666f6ab2 (diff) | |
download | node-new-20176a98416353d4596900793f739d5ebf4f0ee1.tar.gz |
src: make stdout/sterr pipes blocking
Expose `setBlocking` on Pipe's and if a pipe is being created for stdio
on windows then make the pipes blocking.
This fixes test-stream2-stderr-sync.js on Windows.
Fixes #3584
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r-- | src/pipe_wrap.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc index 1fc9a560fa..3f19601789 100644 --- a/src/pipe_wrap.cc +++ b/src/pipe_wrap.cc @@ -91,6 +91,8 @@ void PipeWrap::Initialize(Handle<Object> target, NODE_SET_PROTOTYPE_METHOD(t, "unref", HandleWrap::Unref); NODE_SET_PROTOTYPE_METHOD(t, "ref", HandleWrap::Ref); + NODE_SET_PROTOTYPE_METHOD(t, "setBlocking", StreamWrap::SetBlocking); + NODE_SET_PROTOTYPE_METHOD(t, "readStart", StreamWrap::ReadStart); NODE_SET_PROTOTYPE_METHOD(t, "readStop", StreamWrap::ReadStop); NODE_SET_PROTOTYPE_METHOD(t, "shutdown", StreamWrap::Shutdown); |