[rt-commit] [svn] r524 - rt/trunk/lib/RT/Interface
    jesse at fsck.com 
    jesse at fsck.com
       
    Tue Mar  9 18:03:44 EST 2004
    
    
  
Author: jesse
Date: Tue Mar  9 18:03:44 2004
New Revision: 524
Modified:
   rt/trunk/lib/RT/Interface/Web.pm
Log:
#5345: Better cleanup of tempfiles
Modified: rt/trunk/lib/RT/Interface/Web.pm
==============================================================================
--- rt/trunk/lib/RT/Interface/Web.pm	(original)
+++ rt/trunk/lib/RT/Interface/Web.pm	Tue Mar  9 18:03:44 2004
@@ -530,7 +530,7 @@
         # on NFS and NTFS, it is possible that tempfile() conflicts
         # with other processes, causing a race condition. we try to
         # accommodate this by pausing and retrying.
-        last if ($fh, $temp_file) = eval { tempfile() };
+        last if ($fh, $temp_file) = eval { tempfile( UNLINK => 1) };
         sleep 1;
     }
 
    
    
More information about the Rt-commit
mailing list