Skip to content

Commit 3363b84

Browse files
committed
Set std error to no buffering on Win32.
1 parent deb78dd commit 3363b84

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bin/psql/startup.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.91 2004/04/22 14:34:38 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.92 2004/05/02 04:25:45 momjian Exp $
77
*/
88
#include "postgres_fe.h"
99

@@ -124,6 +124,9 @@ main(int argc, char *argv[])
124124
}
125125
}
126126

127+
#ifdef WIN32
128+
setvbuf(stderr,NULL,_IONBF,0);
129+
#endif
127130
pset.cur_cmd_source = stdin;
128131
pset.cur_cmd_interactive = false;
129132
pset.encoding = PQenv2encoding();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy