equal
deleted
inserted
replaced
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 } |