]> git.donarmstrong.com Git - mothur.git/blobdiff - phylodiversitycommand.cpp
cluster.split fix
[mothur.git] / phylodiversitycommand.cpp
index efa14cd7069266ebfedb41018de0120327a145a9..a97e09564d6cbf27d67b57fa461469096237f354 100644 (file)
@@ -322,7 +322,11 @@ int PhyloDiversityCommand::createProcesses(vector<int>& procIters, Tree* t, map<
                                out.close();
                                
                                exit(0);
-                       }else { m->mothurOut("unable to spawn the necessary processes."); m->mothurOutEndLine(); exit(0); }
+                       }else { 
+                               m->mothurOut("[ERROR]: unable to spawn the necessary processes."); m->mothurOutEndLine(); 
+                               for (int i = 0; i < processIDS.size(); i++) { kill (processIDS[i], SIGINT); }
+                               exit(0);
+                       }
                }
                
                driver(t, div, sumDiv, procIters[0], increment, randomLeaf, numSampledList, outCollect, outSum, true);