]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracweightedcommand.cpp
finished sub.sample command
[mothur.git] / unifracweightedcommand.cpp
index 2646ede2643feef23477167cb9d627c884cd884c..df73c9389b99b7ba18725d418d62b36184efa398 100644 (file)
@@ -24,6 +24,7 @@ vector<string> UnifracWeightedCommand::getValidParameters(){
 //**********************************************************************************************************************
 UnifracWeightedCommand::UnifracWeightedCommand(){      
        try {
+               abort = true;
                //initialize outputTypes
                vector<string> tempOutNames;
                outputTypes["weighted"] = tempOutNames;
@@ -348,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);