Skip to content

Commit 1e63159

Browse files
authored
Name the shutdown hook (#3170)
Fixes #3169
1 parent 76e806a commit 1e63159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
944944
// Stuff that should have been final
945945
setupStuff();
946946
Platform platform = PLATFORM.withJdkExecAttributesForTests(getEffectiveJvm());
947-
Thread shutdownThread = new Thread(platform::setShutdownState);
947+
Thread shutdownThread = new Thread(platform::setShutdownState, "Surefire Shutdown Hook");
948948
addShutDownHook(shutdownThread);
949949
try {
950950
if (verifyParameters() && !hasExecutedBefore()) {

0 commit comments

Comments
 (0)