Skip to content

Commit

Permalink
8339850: Restore the interrupt status in FileSystemPreferences.lockFi…
Browse files Browse the repository at this point in the history
…le()

Reviewed-by: bpb, djelinski, vtewari
  • Loading branch information
sbgoog authored and cushon committed Oct 2, 2024
1 parent 5063494 commit 9fc1c68
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -957,6 +957,8 @@ private boolean lockFile(boolean shared) throws SecurityException{
try {
Thread.sleep(sleepTime);
} catch(InterruptedException e) {
// Don't lose the interrupt.
Thread.currentThread().interrupt();
checkLockFile0ErrorCode(errorCode);
return false;
}
Expand Down

1 comment on commit 9fc1c68

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.