[Python-checkins] python/dist/src/Python ceval.c,2.418,2.419
kbk at users.sourceforge.net
kbk at users.sourceforge.net
Tue Nov 23 19:06:16 CET 2004
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15637/Python
Modified Files:
ceval.c
Log Message:
Hye-Shik Chang's fix for Bug 875692.
Improve signal handling, especially when using threads, by forcing an early
re-execution of PyEval_EvalFrame() "periodic" code when things_to_do is not
cleared by Py_MakePendingCalls().
M Misc/NEWS
M Python/ceval.c
Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.418
retrieving revision 2.419
diff -u -d -r2.418 -r2.419
--- ceval.c 11 Oct 2004 02:40:50 -0000 2.418
+++ ceval.c 23 Nov 2004 18:06:08 -0000 2.419
@@ -786,6 +786,12 @@
why = WHY_EXCEPTION;
goto on_error;
}
+ if (things_to_do)
+ /* MakePendingCalls() didn't succeed.
+ Force early re-execution of this
+ "periodic" code, possibly after
+ a thread switch */
+ _Py_Ticker = 0;
}
#ifdef WITH_THREAD
if (interpreter_lock) {
More information about the Python-checkins
mailing list