]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracweightedcommand.cpp
cluster.split fix
[mothur.git] / unifracweightedcommand.cpp
index 33a0e6dd9a3128541ab57777125251a97effdefc..df73c9389b99b7ba18725d418d62b36184efa398 100644 (file)
@@ -349,7 +349,11 @@ int UnifracWeightedCommand::createProcesses(Tree* t, vector< vector<string> > na
                                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, namesOfGroupCombos, lines[0].start, lines[0].num, scores);