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:
authorRich Trott <rtrott@gmail.com>2015-11-07 01:15:18 +0300
committerRich Trott <rtrott@gmail.com>2015-11-11 04:52:44 +0300
commit0966ab99966b7d3fbe4d7b93797fb299595fca72 (patch)
tree7629cb6783f43cdddb33c4e9f804d70a0b9a579b /src/node_main.cc
parenteff8c3e02417652b78436eaa10d049e8c60e5275 (diff)
src: force line buffering for stderr
SmartOS does not line buffer stderr by default, or at least that is the behavior on the Node project Jenkins server. Force line buffering. This resolves the flakiness observed on SmartOS for test-debug-signal-cluster. PR-URL: https://github.com/nodejs/node/pull/3701 Fixes: https://github.com/nodejs/node/issues/2476 Refs: https://github.com/nodejs/node/pull/3615 Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/node_main.cc')
-rw-r--r--src/node_main.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_main.cc b/src/node_main.cc
index 13a70b2d0d3..58e747e52c4 100644
--- a/src/node_main.cc
+++ b/src/node_main.cc
@@ -41,6 +41,7 @@ int wmain(int argc, wchar_t *wargv[]) {
#else
// UNIX
int main(int argc, char *argv[]) {
+ setvbuf(stderr, NULL, _IOLBF, 1024);
return node::Start(argc, argv);
}
#endif