Commit db932786 authored by Victor Stinner's avatar Victor Stinner

Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c, clear

the end-of-file indicator after CTRL+d.
parents 72547622 4755ab01
...@@ -10,6 +10,9 @@ What's New in Python 3.2.1? ...@@ -10,6 +10,9 @@ What's New in Python 3.2.1?
Core and Builtins Core and Builtins
----------------- -----------------
- Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c,
clear the end-of-file indicator after CTRL+d.
- Issue #1856: Avoid crashes and lockups when daemon threads run while the - Issue #1856: Avoid crashes and lockups when daemon threads run while the
interpreter is shutting down; instead, these threads are now killed when interpreter is shutting down; instead, these threads are now killed when
they try to take the GIL. they try to take the GIL.
......
...@@ -73,6 +73,7 @@ my_fgets(char *buf, int len, FILE *fp) ...@@ -73,6 +73,7 @@ my_fgets(char *buf, int len, FILE *fp)
} }
#endif /* MS_WINDOWS */ #endif /* MS_WINDOWS */
if (feof(fp)) { if (feof(fp)) {
clearerr(fp);
return -1; /* EOF */ return -1; /* EOF */
} }
#ifdef EINTR #ifdef EINTR
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment