aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-09-21 12:11:29 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-09-21 15:09:56 +0200
commit966f777895168d42a31cd109dd7a3d136c8cb9fe (patch)
treea1355ca5ebfa7c348571188521a731a6c3a4ccbc /sonar-plugin-api
parent16bc84294198f9361dbf83557bd5087bedd7ef22 (diff)
downloadsonarqube-966f777895168d42a31cd109dd7a3d136c8cb9fe.tar.gz
sonarqube-966f777895168d42a31cd109dd7a3d136c8cb9fe.zip
Improve handling of some thread interruptions
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandExecutor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandExecutor.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandExecutor.java
index 2c68874a029..e27f7124b81 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandExecutor.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandExecutor.java
@@ -147,7 +147,8 @@ public class CommandExecutor {
try {
thread.join();
} catch (InterruptedException e) {
- LOG.error("InterruptedException while waiting finish of " + thread.toString(), e);
+ // considered as finished, restore the interrupted flag
+ Thread.currentThread().interrupt();
}
}
}