1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-03 16:53:36 +03:00

In the command-line shell, make sure stderr is unbuffered so that it

automatically flushes.  This has always been the case already for unix and
on Windows when the output is a console, but apparently was not the case
on Windows when the output was a pipe.

FossilOrigin-Name: 2a9ea9b4a7d6904efb2112e32efe84123dfa75d7
This commit is contained in:
drh
2015-01-24 12:12:57 +00:00
parent 2b8c5a0039
commit 81cda6460c
3 changed files with 8 additions and 7 deletions

View File

@@ -4195,6 +4195,7 @@ int main(int argc, char **argv){
}
#endif
setBinaryMode(stdin);
setvbuf(stderr, 0, _IONBF, 0); /* Make sure stderr is unbuffered */
Argv0 = argv[0];
main_init(&data);
stdin_is_interactive = isatty(0);