File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
byte-buddy-agent/src/main/java/net/bytebuddy/agent Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1678,7 +1678,10 @@ public static VirtualMachine attach(String processId) throws IOException {
1678
1678
* @throws IOException If an IO exception occurs during establishing the connection.
1679
1679
*/
1680
1680
public static VirtualMachine attach (String processId , int timeout , Dispatcher dispatcher ) throws IOException {
1681
- File directory = new File (System .getProperty (IBM_TEMPORARY_FOLDER , dispatcher .getTemporaryFolder (processId )), ".com_ibm_tools_attach" );
1681
+ String temporary = System .getProperty (IBM_TEMPORARY_FOLDER );
1682
+ File directory = temporary == null
1683
+ ? new File (dispatcher .getTemporaryFolder (processId ), ".com_ibm_tools_attach" )
1684
+ : new File (temporary );
1682
1685
long userId = dispatcher .userId ();
1683
1686
RandomAccessFile attachLock = new RandomAccessFile (new File (directory , "_attachlock" ), "rw" );
1684
1687
try {
You can’t perform that action at this time.
0 commit comments