Skip to content

Commit 8320618

Browse files
committed
JDK-8342449: fixed a couple of jcheck issues, modified AttachNotSupportedException to indicate that attachee is not ready to accept SIGQUIT
1 parent e678b9c commit 8320618

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jdk.attach/linux/classes/sun/tools/attach/VirtualMachineImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public class VirtualMachineImpl extends HotSpotVirtualMachine {
8282
// Keep canonical version of File, to delete, in case target process ends and /proc link has gone:
8383
File f = createAttachFile(pid, ns_pid).getCanonicalFile();
8484

85-
boolean sentQuit = false;
85+
boolean sentQuit = false;
8686

8787
try {
8888
sentQuit = checkCatchesAndSendQuitTo(pid, false);
@@ -109,8 +109,8 @@ public class VirtualMachineImpl extends HotSpotVirtualMachine {
109109
if (!socket_file.exists()) {
110110
throw new AttachNotSupportedException(
111111
String.format("Unable to open socket file %s: " +
112-
"target process %d doesn't %s within %dms " +
113-
"or HotSpot VM not loaded", socket_path, pid, sentQuit ? "respond" : "become ready",
112+
"target process %d %s within %dms " +
113+
"or HotSpot VM not loaded", socket_path, pid, sentQuit ? "doesn't respond" : "has not become ready",
114114
time_spend));
115115
}
116116
} finally {

0 commit comments

Comments
 (0)