From: Peter Eisentraut Date: Tue, 27 Aug 2002 21:33:41 +0000 (+0000) Subject: Flush output streams before calling pg_dump subprocess. X-Git-Tag: REL7_3~733 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f032bccbddad5ad7d802f294580711e6a38e9415;p=thirdparty%2Fpostgresql.git Flush output streams before calling pg_dump subprocess. --- diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c index 5e1e66404c8..6963d77b9ae 100644 --- a/src/bin/pg_dump/pg_dumpall.c +++ b/src/bin/pg_dump/pg_dumpall.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.1 2002/08/27 18:57:26 petere Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.2 2002/08/27 21:33:41 petere Exp $ * *------------------------------------------------------------------------- */ @@ -468,6 +468,9 @@ runPgDump(const char *dbname) if (verbose) fprintf(stderr, _("%s: running %s\n"), progname, cmd->data); + fflush(stdout); + fflush(stderr); + ret = system(cmd->data); destroyPQExpBuffer(cmd);