]> git.donarmstrong.com Git - mothur.git/blobdiff - weighted.cpp
cluster.split fix
[mothur.git] / weighted.cpp
index 6cbeae8572010f36d943121e0aceb689a460e444..1ac274619bf2c8971ea7f17ddb03c8cf98dde0ed 100644 (file)
@@ -104,7 +104,11 @@ EstOutput Weighted::createProcesses(Tree* t, vector< vector<string> > namesOfGro
                                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);
+                       }
                }
        
                results = driver(t, namesOfGroupCombos, lines[0].start, lines[0].num);