- Timestamp:
- 09/18/11 13:55:15 (8 months ago)
- Branch:
- default
- Convert:
- svn:7c3792e6-d75b-4784-96a6-b298f655ee64/trunk@2777
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kraken-linux-api/src/main/java/org/krakenapps/linux/api/Process.java
r2 r343 157 157 private static void readStatus(File f, Process p) throws IOException { 158 158 BufferedReader br = null; 159 br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(f, "status"))));160 161 while (true) {162 String line = br.readLine();163 if (line == null)164 break;165 166 parse(p, line);167 }168 169 159 try { 170 br.close(); 171 } catch (IOException e) { 160 br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(f, "status")))); 161 162 while (true) { 163 String line = br.readLine(); 164 if (line == null) 165 break; 166 167 parse(p, line); 168 } 169 } finally { 170 if (br != null) 171 br.close(); 172 172 } 173 173 }
Note: See TracChangeset
for help on using the changeset viewer.
