Skip to content

Instantly share code, notes, and snippets.

@thermosym
Created March 9, 2014 13:27
Show Gist options
  • Save thermosym/9447725 to your computer and use it in GitHub Desktop.
Save thermosym/9447725 to your computer and use it in GitHub Desktop.
Process process = new ProcessBuilder(command).start();
while (true) {
try {
if (process.exitValue() == 0)
break;
}
catch (IllegalThreadStateException e) {
continue;
}
}
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment