/* 99 */ dir = dir + File.separator + "tmp";
/* */ }
/* 101 */ File tmpDir = new File(dir);
/* */
/* 103 */ if ((!tmpDir.isDirectory()) && (!tmpDir.mkdirs())) {
/* 104 */ throw new FatalError(tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.utils.FilePocessId_1"));
/* */ }
/* 106 */ for (int i = 0; i < retry; i++)
/* */ {
/* */ try
/* */ {
/* 110 */ File f = new File(dir + File.separator + "pid " + pid);
/* */
/* 112 */ if (f.createNewFile())
/* */ {
/* 114 */ f.deleteOnExit();
/* */
/* 116 */ processId = pid;
/* */
/* 118 */ break;
/* */ }
/* */
/* 121 */ pid++;
/* */ }
/* */ catch (IOException e)
/* */ {
/* */ }
/* */ }
/* */
/* 128 */ if (processId == 0) {
/* 129 */ throw new FatalError(tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.utils.FilePocessId_2"));
/* */ }
/* */ }
/* */ }
/* */ }
/* 134 */ return processId;