Commit 3363b847 authored by Bruce Momjian's avatar Bruce Momjian

Set std error to no buffering on Win32.

parent deb78dd8
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* Copyright (c) 2000-2003, PostgreSQL Global Development Group * 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" #include "postgres_fe.h"
...@@ -124,6 +124,9 @@ main(int argc, char *argv[]) ...@@ -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_source = stdin;
pset.cur_cmd_interactive = false; pset.cur_cmd_interactive = false;
pset.encoding = PQenv2encoding(); pset.encoding = PQenv2encoding();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment