mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Make stdin unbuffered too, when PYTHONUNBUFFERED is specified.
This commit is contained in:
parent
57ba4f35f7
commit
c425d2f87b
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ Py_FrozenMain(argc, argv)
|
||||||
unbuffered = 1;
|
unbuffered = 1;
|
||||||
|
|
||||||
if (unbuffered) {
|
if (unbuffered) {
|
||||||
|
setbuf(stdin, (char *)NULL);
|
||||||
setbuf(stdout, (char *)NULL);
|
setbuf(stdout, (char *)NULL);
|
||||||
setbuf(stderr, (char *)NULL);
|
setbuf(stderr, (char *)NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue