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:
Andrew Dunstan 2013-02-27 19:13:07 -05:00
parent 7d6b8f7158
commit 63d283ecd0

View File

@ -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;
}