summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-02 20:41:39 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-02 20:41:39 (GMT)
commitc425d2f87bd39e4e8f4cc0260862d51eb72378e7 (patch)
treed2e658a349eaf15eb9c33db90693a52cb05163c0 /Python
parent57ba4f35f71c50b727483707bfda7198edd3c2bd (diff)
downloadcpython-c425d2f87bd39e4e8f4cc0260862d51eb72378e7.zip
cpython-c425d2f87bd39e4e8f4cc0260862d51eb72378e7.tar.gz
cpython-c425d2f87bd39e4e8f4cc0260862d51eb72378e7.tar.bz2
Make stdin unbuffered too, when PYTHONUNBUFFERED is specified.
Diffstat (limited to 'Python')
-rw-r--r--Python/frozenmain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/frozenmain.c b/Python/frozenmain.c
index 755033c..10fba54 100644
--- a/Python/frozenmain.c
+++ b/Python/frozenmain.c
@@ -51,6 +51,7 @@ Py_FrozenMain(argc, argv)
unbuffered = 1;
if (unbuffered) {
+ setbuf(stdin, (char *)NULL);
setbuf(stdout, (char *)NULL);
setbuf(stderr, (char *)NULL);
}