Skip to content

Commit 0966ab9

Browse files
committed
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: #3701 Fixes: #2476 Refs: #3615 Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent eff8c3e commit 0966ab9

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/node_main.cc

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ int wmain(int argc, wchar_t *wargv[]) {
4141
#else
4242
// UNIX
4343
int main(int argc, char *argv[]) {
44+
setvbuf(stderr, NULL, _IOLBF, 1024);
4445
return node::Start(argc, argv);
4546
}
4647
#endif

test/parallel/parallel.status

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ test-child-process-exit-code : PASS,FLAKY
1818
[$system==macos]
1919

2020
[$system==solaris] # Also applies to SmartOS
21-
test-debug-signal-cluster : PASS,FLAKY
2221

2322
[$system==freebsd]
2423
test-net-socket-local-address : PASS,FLAKY

0 commit comments

Comments
 (0)