()
| 271 | } |
| 272 | |
| 273 | @Override |
| 274 | public void close() { |
| 275 | p.destroy(); |
| 276 | |
| 277 | try { |
| 278 | waitForExit(p, 20); |
| 279 | } catch (TimeoutException e) { |
| 280 | log.log(Level.WARNING, "Failed to terminate child process", e); |
| 281 | } catch (InterruptedException e) { |
| 282 | Thread.currentThread().interrupt(); |
| 283 | } finally { |
| 284 | moveLogs(); |
| 285 | clearTempFiles(); |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | public long pid() { |
| 290 | try { |
nothing calls this directly
no test coverage detected