Set std error to no buffering on Win32.

This commit is contained in:
Bruce Momjian 2004-05-02 04:25:45 +00:00
parent deb78dd833
commit 3363b847ec
1 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.91 2004/04/22 14:34:38 momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.92 2004/05/02 04:25:45 momjian Exp $
*/
#include "postgres_fe.h"
@ -124,6 +124,9 @@ main(int argc, char *argv[])
}
}
#ifdef WIN32
setvbuf(stderr,NULL,_IONBF,0);
#endif
pset.cur_cmd_source = stdin;
pset.cur_cmd_interactive = false;
pset.encoding = PQenv2encoding();