Skip to content

Commit 63d283e

Browse files
committed
Flush stderr and stdout in isolation tester.
This is a possibly vain attempt to fix a buffering issue observed for some MSVC builds.
1 parent 7d6b8f7 commit 63d283e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/isolation/isolationtester.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ exit_nicely(void)
7070

7171
for (i = 0; i < nconns; i++)
7272
PQfinish(conns[i]);
73+
fflush(stderr);
74+
fflush(stdout);
7375
exit(1);
7476
}
7577

@@ -283,6 +285,8 @@ main(int argc, char **argv)
283285
/* Clean up and exit */
284286
for (i = 0; i < nconns; i++)
285287
PQfinish(conns[i]);
288+
fflush(stderr);
289+
fflush(stdout);
286290
return 0;
287291
}
288292

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy