summaryrefslogtreecommitdiff
path: root/src/bin/scripts/createuser.c
diff options
context:
space:
mode:
authorTom Lane2004-01-01 19:27:28 +0000
committerTom Lane2004-01-01 19:27:28 +0000
commite39d4ea478875e9adcc3d6f06bb512d55c0a45a5 (patch)
treeb9a42f9f963248b07692e699c68fb32543992bca /src/bin/scripts/createuser.c
parentf36eb60a3f46af4453805f8212699d7b23331f28 (diff)
Do an explicit fflush after writing a progress message with puts.
This ensures stdout is kept in sync with messages on stderr. Per report from Olaf Ferger.
Diffstat (limited to 'src/bin/scripts/createuser.c')
-rw-r--r--src/bin/scripts/createuser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/scripts/createuser.c b/src/bin/scripts/createuser.c
index 1e4987bd9c..8007bfca2d 100644
--- a/src/bin/scripts/createuser.c
+++ b/src/bin/scripts/createuser.c
@@ -224,7 +224,10 @@ main(int argc, char *argv[])
PQfinish(conn);
if (!quiet)
+ {
puts("CREATE USER");
+ fflush(stdout);
+ }
exit(0);
}