mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Flush stderr and stdout in isolation tester.
This is a possibly vain attempt to fix a buffering issue observed for some MSVC builds.
This commit is contained in:
parent
7d6b8f7158
commit
63d283ecd0
@ -70,6 +70,8 @@ exit_nicely(void)
|
||||
|
||||
for (i = 0; i < nconns; i++)
|
||||
PQfinish(conns[i]);
|
||||
fflush(stderr);
|
||||
fflush(stdout);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@ -283,6 +285,8 @@ main(int argc, char **argv)
|
||||
/* Clean up and exit */
|
||||
for (i = 0; i < nconns; i++)
|
||||
PQfinish(conns[i]);
|
||||
fflush(stderr);
|
||||
fflush(stdout);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user