mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c, clear
the end-of-file indicator after CTRL+d.
This commit is contained in:
commit
db932786af
2 changed files with 4 additions and 0 deletions
|
@ -73,6 +73,7 @@ my_fgets(char *buf, int len, FILE *fp)
|
|||
}
|
||||
#endif /* MS_WINDOWS */
|
||||
if (feof(fp)) {
|
||||
clearerr(fp);
|
||||
return -1; /* EOF */
|
||||
}
|
||||
#ifdef EINTR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue