Skip to content

Commit

Permalink
update nuprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
redxdev committed Feb 5, 2018
1 parent 2409ac3 commit 9cc0be6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>nuprocess</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/io/playpen/core/utils/process/XProcess.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ public boolean isRunning() {

public void stop() {
process.destroy(true);
try {
process.waitFor(5, TimeUnit.SECONDS);
}
catch (InterruptedException e) {
log.info("Interrupted while waiting for process to shutdown", e);
}
}

@Override
Expand Down

0 comments on commit 9cc0be6

Please sign in to comment.