Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Campailla <alexis@janeasystems.com>2014-02-26 18:03:59 +0400
committerTimothy J Fontaine <tjfontaine@gmail.com>2014-02-26 22:36:58 +0400
commit20176a98416353d4596900793f739d5ebf4f0ee1 (patch)
tree70c9765fd8b736fe144522014afc825eef8dff53 /src/stream_wrap.h
parentc1bb88699058011cce8df12a5cf39354666f6ab2 (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.h2
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_;
}