JRE-1061 .attach_pid files in the working dir

This commit is contained in:
Egor Ushakov
2018-11-30 18:49:31 +03:00
parent 1d32ff4742
commit 9b4b3fb698
3 changed files with 4 additions and 0 deletions

View File

@@ -234,6 +234,7 @@ public class VirtualMachineImpl extends HotSpotVirtualMachine {
String path = "/proc/" + pid + "/cwd/" + fn;
File f = new File(path);
try {
f = f.getCanonicalFile();
f.createNewFile();
} catch (IOException x) {
f = new File(tmpdir, fn);