[Python-checkins] CVS: python/dist/src/Lib threading.py,1.12,1.12.2.1

Anthony Baxter anthonybaxter@users.sourceforge.net
Thu, 10 Jan 2002 01:54:03 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv8575

Modified Files:
      Tag: release21-maint
	threading.py 
Log Message:
Backport gvanrossum's checkin of revision 1.20:

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.


Index: threading.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/threading.py,v
retrieving revision 1.12
retrieving revision 1.12.2.1
diff -C2 -d -r1.12 -r1.12.2.1
*** threading.py	2001/04/02 20:15:57	1.12
--- threading.py	2002/01/10 09:54:01	1.12.2.1
***************
*** 392,396 ****
          finally:
              self.__stop()
!             self.__delete()
  
      def __stop(self):
--- 392,399 ----
          finally:
              self.__stop()
!             try:
!                 self.__delete()
!             except:
!                 pass
  
      def __stop(self):