Skip to content

Commit

Permalink
Fixed zombie thread detection
Browse files Browse the repository at this point in the history
  • Loading branch information
S1artie committed Jul 4, 2018
1 parent 728a5ff commit 5ba04f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void checkForZombieThreads() {

List<Thread> tempZombieThreads = new LinkedList<Thread>();
for (Thread tempThread : tempArray) {
if ((tempThread.getName() != null && tempThread.getName().startsWith("Integrity - "))
if ((tempThread.getName() != null && !tempThread.getName().startsWith("Integrity - "))
&& !threadsRunningBeforeTestExecution.containsKey(tempThread) && tempThread.isAlive()
&& !tempThread.isDaemon()) {
tempZombieThreads.add(tempThread);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,7 @@ private class FilteringStreamCopier extends Thread {
FilteringStreamCopier(String aPrefix, String aThreadName, InputStream aSource, boolean anStdErrFlag,
boolean aFilterForHostAndPortFlag) {
super(aThreadName);
setDaemon(true);
prefix = aPrefix;
source = new BufferedReader(new InputStreamReader(aSource));
stdErr = anStdErrFlag;
Expand Down Expand Up @@ -857,6 +858,7 @@ private class ForkMonitor extends Thread {

ForkMonitor() {
super("Integrity - Fork Monitor Thread");
setDaemon(true);
}

/**
Expand Down

0 comments on commit 5ba04f7

Please sign in to comment.