src/jdk.attach/aix/classes/sun/tools/attach/VirtualMachineImpl.java
changeset 52817 981eb3c1b90d
parent 49742 1196aa0be8be
child 53858 e7cf035682e3
equal deleted inserted replaced
52816:03253c32d8e7 52817:981eb3c1b90d
   266     private File createAttachFile(int pid) throws IOException {
   266     private File createAttachFile(int pid) throws IOException {
   267         String fn = ".attach_pid" + pid;
   267         String fn = ".attach_pid" + pid;
   268         String path = "/proc/" + pid + "/cwd/" + fn;
   268         String path = "/proc/" + pid + "/cwd/" + fn;
   269         File f = new File(path);
   269         File f = new File(path);
   270         try {
   270         try {
       
   271             f = f.getCanonicalFile();
   271             f.createNewFile();
   272             f.createNewFile();
   272         } catch (IOException x) {
   273         } catch (IOException x) {
   273             f = new File(tmpdir, fn);
   274             f = new File(tmpdir, fn);
   274             f.createNewFile();
   275             f.createNewFile();
   275         }
   276         }