]> granicus.if.org Git - python/commitdiff
Make stdin unbuffered too, when PYTHONUNBUFFERED is specified.
authorGuido van Rossum <guido@python.org>
Tue, 2 Dec 1997 20:41:39 +0000 (20:41 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 2 Dec 1997 20:41:39 +0000 (20:41 +0000)
Python/frozenmain.c

index 755033c9ba595a1780ac411fdbfb5524a871a320..10fba54ce94ade310100716d69c22453f2c2cabb 100644 (file)
@@ -51,6 +51,7 @@ Py_FrozenMain(argc, argv)
                unbuffered = 1;
 
        if (unbuffered) {
+               setbuf(stdin, (char *)NULL);
                setbuf(stdout, (char *)NULL);
                setbuf(stderr, (char *)NULL);
        }