8075569: jmap test fails due to "ERROR: java.nio.file.NoSuchFileException: 2906081d-06bc-4738-a7e8-f37b8bf13658.lck"

Lock file is deleted while we are setting modified time

Reviewed-by: alanb
This commit is contained in:
Dmitry Samersoff 2015-03-23 02:29:47 -07:00
parent 35c411ea7e
commit 7e09df43e6

View File

@ -417,7 +417,9 @@ public class LingeredApp {
setLastModified(theLockFileName, epoch());
Thread.sleep(spinDelay);
}
} catch (NoSuchFileException ex) {
// Lock deleted while we are setting last modified time.
// Ignore error and lets the app exits
} catch (Exception ex) {
System.err.println("LingeredApp ERROR: " + ex);
// Leave exit_code = 1 to Java launcher