diff options
author | Alexis Campailla <alexis@janeasystems.com> | 2014-02-26 18:03:59 +0400 |
---|---|---|
committer | Timothy J Fontaine <tjfontaine@gmail.com> | 2014-02-26 22:36:58 +0400 |
commit | 20176a98416353d4596900793f739d5ebf4f0ee1 (patch) | |
tree | 70c9765fd8b736fe144522014afc825eef8dff53 /src/stream_wrap.h | |
parent | c1bb88699058011cce8df12a5cf39354666f6ab2 (diff) |
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/stream_wrap.h')
-rw-r--r-- | src/stream_wrap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stream_wrap.h b/src/stream_wrap.h index 0f657fe9202..92159fe1175 100644 --- a/src/stream_wrap.h +++ b/src/stream_wrap.h @@ -126,6 +126,8 @@ class StreamWrap : public HandleWrap { static void WriteUtf8String(const v8::FunctionCallbackInfo<v8::Value>& args); static void WriteUcs2String(const v8::FunctionCallbackInfo<v8::Value>& args); + static void SetBlocking(const v8::FunctionCallbackInfo<v8::Value>& args); + inline StreamWrapCallbacks* callbacks() const { return callbacks_; } |