[Python-checkins] CVS: python/dist/src/Lib threading.py,1.19,1.20
Guido van Rossum
gvanrossum@users.sourceforge.net
Fri, 28 Dec 2001 14:07:13 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv8901
Modified Files:
threading.py
Log Message:
Thread.__bootstrap(): ignore exceptions in the self.__delete() call in
the finally clause. An exception here could happen when a daemon
thread exits after the threading module has already been trashed by
the import finalization, and there's not much of a point in trying to
insist doing the cleanup in that stage.
This should fix SF bug ##497111: active_limbo_lock error at program
exit.
2.1.2 and 2.2.1 Bugfix candidate!
Index: threading.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/threading.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** threading.py 2001/09/18 02:26:39 1.19
--- threading.py 2001/12/28 22:07:09 1.20
***************
*** 422,426 ****
finally:
self.__stop()
! self.__delete()
def __stop(self):
--- 422,429 ----
finally:
self.__stop()
! try:
! self.__delete()
! except:
! pass
def __stop(self):