diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-01-01 19:27:28 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-01-01 19:27:28 +0000 |
commit | 8265a1d8163656cbccc8c69b22c65138e30022c0 (patch) | |
tree | d44ef2b6947b114e79d1f7562948e2c288923ce5 /src/bin/scripts/dropuser.c | |
parent | f40aa225bd2faa5cbab4a3800d0e14f09c551683 (diff) | |
download | postgresql-8265a1d8163656cbccc8c69b22c65138e30022c0.tar.gz postgresql-8265a1d8163656cbccc8c69b22c65138e30022c0.zip |
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/dropuser.c')
-rw-r--r-- | src/bin/scripts/dropuser.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/scripts/dropuser.c b/src/bin/scripts/dropuser.c index 06472a800d7..23f8134fac7 100644 --- a/src/bin/scripts/dropuser.c +++ b/src/bin/scripts/dropuser.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/bin/scripts/dropuser.c,v 1.5 2003/07/23 08:47:41 petere Exp $ + * $Header: /cvsroot/pgsql/src/bin/scripts/dropuser.c,v 1.5.4.1 2004/01/01 19:27:28 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -131,7 +131,10 @@ main(int argc, char *argv[]) PQfinish(conn); if (!quiet) + { puts("DROP USER"); + fflush(stdout); + } exit(0); } |