Hi, > Thanks for the information. I hacked tempfile.rb like this: > > --- lib/tempfile.rb 2000/12/08 07:10:36 1.6 > +++ lib/tempfile.rb 2001/01/23 06:17:54 > @@ -17,12 +17,15 @@ > def Tempfile.callback(path, data) > + pid = $$ > lambda{ > - print "removing ", path, "..." if $DEBUG > - data[0].close if data[0] > - if File.exist?(path) > - File.unlink(path) > + if pid == $$ > + print "removing ", path, "..." if $DEBUG > + data[0].close if data[0] > + if File.exist?(path) > + File.unlink(path) > + end > + if File.exist?(path + '.lock') > + Dir.rmdir(path + '.lock') > + end > + print "done\n" if $DEBUG > end > - if File.exist?(path + '.lock') > - Dir.rmdir(path + '.lock') > - end > - print "done\n" if $DEBUG > } Is it possible to apply this patch with a single command? Thanx. Jilani