]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
In a threads-disabled build, typing Ctrl-C into a raw_input() crashed,
authorMichael W. Hudson <mwh@python.net>
Thu, 7 Apr 2005 10:11:19 +0000 (10:11 +0000)
committerMichael W. Hudson <mwh@python.net>
Thu, 7 Apr 2005 10:11:19 +0000 (10:11 +0000)
commite3afc598bc62c6ad46c56feec3f18cf8131c91c6
treea9aa0012c005163c8925db55f1a136ffd1c9b8de
parentad351f806d74d8ffbfd8b8f8f78b72043d9c8168
In a threads-disabled build, typing Ctrl-C into a raw_input() crashed,
because (essentially) I didn't realise that PY_BEGIN/END_ALLOW_THREADS
actually expanded to nothing under a no-threads build, so if you somehow
NULLed out the threadstate (e.g. by calling PyThread_SaveThread) it would
stay NULLed when you return to Python.  Argh!

Backport candidate.
Misc/NEWS
Modules/readline.c
Parser/myreadline.c