[Python-checkins] r81311 - in python/branches/release26-maint: Lib/test/crashers/multithreaded_close.py

georg.brandl python-checkins at python.org
Wed May 19 01:47:48 CEST 2010


Author: georg.brandl
Date: Wed May 19 01:47:48 2010
New Revision: 81311

Log:
Merged revisions 70697 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70697 | benjamin.peterson | 2009-03-29 21:22:35 +0000 (So, 29 Mär 2009) | 1 line
  
  this has been fixed since 2.6 (I love removing these)
........


Removed:
   python/branches/release26-maint/Lib/test/crashers/multithreaded_close.py
Modified:
   python/branches/release26-maint/   (props changed)

Deleted: python/branches/release26-maint/Lib/test/crashers/multithreaded_close.py
==============================================================================
--- python/branches/release26-maint/Lib/test/crashers/multithreaded_close.py	Wed May 19 01:47:48 2010
+++ (empty file)
@@ -1,14 +0,0 @@
-# f.close() is not thread-safe: calling it at the same time as another
-# operation (or another close) on the same file, but done from another
-# thread, causes crashes.  The issue is more complicated than it seems,
-# witness the discussions in:
-#
-# http://bugs.python.org/issue595601
-# http://bugs.python.org/issue815646
-
-import thread
-
-while 1:
-    f = open("multithreaded_close.tmp", "w")
-    thread.start_new_thread(f.close, ())
-    f.close()


More information about the Python-checkins mailing list