diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-09-21 12:11:29 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-09-21 15:09:56 +0200 |
commit | 966f777895168d42a31cd109dd7a3d136c8cb9fe (patch) | |
tree | a1355ca5ebfa7c348571188521a731a6c3a4ccbc /sonar-plugin-api | |
parent | 16bc84294198f9361dbf83557bd5087bedd7ef22 (diff) | |
download | sonarqube-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.java | 3 |
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(); } } } |