8000 isolationtester: Ensure stderr is unbuffered, too · postgrespro/postgres_cluster@6eda3e9 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

8000
Appearance settings

Commit 6eda3e9

Browse files
committed
isolationtester: Ensure stderr is unbuffered, too
1 parent 527fdd9 commit 6eda3e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/isolation/isolationtester.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,12 @@ main(int argc, char **argv)
9999
}
100100
}
101101

102-
/* make stdout unbuffered to match stderr */
102+
/*
103+
* Make stdout unbuffered to match stderr; and ensure stderr is unbuffered
104+
* too, which it should already be everywhere except sometimes in Windows.
105+
*/
103106
setbuf(stdout, NULL);
107+
setbuf(stderr, NULL);
104108

105109
/*
106110
* If the user supplies a non-option parameter on the command line, use it

0 commit comments

Comments
 (0)
0