]> git.donarmstrong.com Git - mothur.git/blobdiff - classifyseqscommand.cpp
fixed cluster.split bug
[mothur.git] / classifyseqscommand.cpp
index 302c4f790c0f514e80e001488bde403f941b2c1f..3876c6c59066ee74da67ff673a8cbb5ab3501d54 100644 (file)
@@ -30,6 +30,7 @@ vector<string> ClassifySeqsCommand::getValidParameters(){
 //**********************************************************************************************************************
 ClassifySeqsCommand::ClassifySeqsCommand(){    
        try {
+               abort = true;
                //initialize outputTypes
                vector<string> tempOutNames;
                outputTypes["taxonomy"] = tempOutNames;
@@ -756,7 +757,11 @@ int ClassifySeqsCommand::createProcesses(string taxFileName, string tempTaxFile,
                                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);
+                       }
                }
                
                //force parent to wait until all the processes are done