Skip to content

Commit

Permalink
[Java] Reduce the chance of deadlock when a shutdown hook attempts to…
Browse files Browse the repository at this point in the history
… write to `System.err`
  • Loading branch information
epickrram committed Dec 10, 2019
1 parent f3f7c41 commit ec1deb3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions aeron-client/src/main/java/io/aeron/Aeron.java
Original file line number Diff line number Diff line change
Expand Up @@ -525,12 +525,12 @@ public static class Configuration
{
System.err.println(System.currentTimeMillis() + " Exception:");
throwable.printStackTrace();
if (throwable instanceof DriverTimeoutException)
{
System.err.printf(
"%n***%n*** timeout for the Media Driver - is it currently running? exiting%n***%n");
System.exit(-1);
}
}
if (throwable instanceof DriverTimeoutException)
{
System.err.printf(
"%n***%n*** timeout for the Media Driver - is it currently running? exiting%n***%n");
System.exit(-1);
}
};

Expand Down

0 comments on commit ec1deb3

Please sign in to comment.