From: Guido van Rossum Date: Tue, 2 Dec 1997 20:41:39 +0000 (+0000) Subject: Make stdin unbuffered too, when PYTHONUNBUFFERED is specified. X-Git-Tag: v1.5b2~121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c425d2f87bd39e4e8f4cc0260862d51eb72378e7;p=thirdparty%2FPython%2Fcpython.git Make stdin unbuffered too, when PYTHONUNBUFFERED is specified. --- diff --git a/Python/frozenmain.c b/Python/frozenmain.c index 755033c9ba59..10fba54ce94a 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); }