From: Alvaro Herrera Date: Fri, 20 Dec 2013 01:09:30 +0000 (-0300) Subject: isolationtester: Ensure stderr is unbuffered, too X-Git-Tag: REL9_4_BETA1~766 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6eda3e9c2;p=thirdparty%2Fpostgresql.git isolationtester: Ensure stderr is unbuffered, too --- diff --git a/src/test/isolation/isolationtester.c b/src/test/isolation/isolationtester.c index 8dc0f66637b..e936c01532f 100644 --- a/src/test/isolation/isolationtester.c +++ b/src/test/isolation/isolationtester.c @@ -99,8 +99,12 @@ main(int argc, char **argv) } } - /* make stdout unbuffered to match stderr */ + /* + * Make stdout unbuffered to match stderr; and ensure stderr is unbuffered + * too, which it should already be everywhere except sometimes in Windows. + */ setbuf(stdout, NULL); + setbuf(stderr, NULL); /* * If the user supplies a non-option parameter on the command line, use it