]> git.donarmstrong.com Git - mothur.git/blobdiff - seqsummarycommand.cpp
added homova command
[mothur.git] / seqsummarycommand.cpp
index 7d074c4e05d441d350d552d2eb3796007191943a..7edb717853461ba4cd23f9845b36880dd9ce38ae 100644 (file)
@@ -25,6 +25,7 @@ vector<string> SeqSummaryCommand::getValidParameters(){
 //**********************************************************************************************************************
 SeqSummaryCommand::SeqSummaryCommand(){        
        try {
+               abort = true;
                //initialize outputTypes
                vector<string> tempOutNames;
                outputTypes["summary"] = tempOutNames;
@@ -504,7 +505,11 @@ int SeqSummaryCommand::createProcessesCreateSummary(vector<int>& startPosition,
                                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