diff options
author | Guido van Rossum <guido@python.org> | 1997-12-02 20:41:39 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-02 20:41:39 (GMT) |
commit | c425d2f87bd39e4e8f4cc0260862d51eb72378e7 (patch) | |
tree | d2e658a349eaf15eb9c33db90693a52cb05163c0 /Python/frozenmain.c | |
parent | 57ba4f35f71c50b727483707bfda7198edd3c2bd (diff) | |
download | cpython-c425d2f87bd39e4e8f4cc0260862d51eb72378e7.zip cpython-c425d2f87bd39e4e8f4cc0260862d51eb72378e7.tar.gz cpython-c425d2f87bd39e4e8f4cc0260862d51eb72378e7.tar.bz2 |
Make stdin unbuffered too, when PYTHONUNBUFFERED is specified.
Diffstat (limited to 'Python/frozenmain.c')
-rw-r--r-- | Python/frozenmain.c | 1 |
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); } |