[issue11650] CTRL-Z causes interpreter exit

Charles-Francois Natali report at bugs.python.org
Wed Mar 23 19:32:43 CET 2011

Charles-Francois Natali <neologix at free.fr> added the comment:

my_fgets in Parser/myreadline.c is broken:
There's a comment saying that a fgets is retried on EINTR, but the code doesn't retry. It used to in older cPython versions, but there was also a bug, so my guess is that this bug has been here for a long time.
Could you try with the attached patch ?
It's just a quick'n dirty patch, but it should fix it.

keywords: +patch
Added file: http://bugs.python.org/file21358/fgets_eintr.diff

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list