summaryrefslogtreecommitdiffstats
path: root/Modules/cgensupport.c
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2005-03-30 11:21:53 (GMT)
committerMichael W. Hudson <mwh@python.net>2005-03-30 11:21:53 (GMT)
commitda6242c84498caaf147d944529877cb3dba4f674 (patch)
treec30bd8e547d9ea9db8bf8d6684708ff25e96fb97 /Modules/cgensupport.c
parent9a8c3142e2bc122386cd1502124cb7103a217386 (diff)
downloadcpython-da6242c84498caaf147d944529877cb3dba4f674.zip
cpython-da6242c84498caaf147d944529877cb3dba4f674.tar.gz
cpython-da6242c84498caaf147d944529877cb3dba4f674.tar.bz2
Fixes for
[ 1166660 ] The readline module can cause python to segfault It seems to me that the code I'm rewriting here attempted to call any user-supplied hook functions using the thread state of the thread that called the hook-setting function, as opposed to that of the thread that is currently executing. This doesn't work, in general. Fix this by using the PyGILState API (It wouldn't be that hard to define a dummy version of said API when #ifndef WITH_THREAD, would it?). Also, check the conversion to integer of the return value of a hook function for errors (this problem was mentioned in the ipython bug report linked to in the above bug).
Diffstat (limited to 'Modules/cgensupport.c')
0 files changed, 0 insertions, 0 deletions