In addition to that, there is also a jvm bug related to this call, which can lead to memory leaks. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4513817

I had too much fun tracking that leak a while ago.

-suresh

Mike Matrigali wrote:
yes, I believe it does not work if you kill the JVM.  I think it also
did not work if you call System.exit(), but I am don't remember that
exactly.  At least that use to be the case.

Bryan Pendleton wrote:

Mike Matrigali wrote:

2) determine if the existing lock is false, ie. the creating process
   exited without cleaning up the lock file.



Is the reason that this is hard because File.deleteOnExit() is not reliable?

thanks,

bryan







Reply via email to