]> git.donarmstrong.com Git - mothur.git/blobdiff - seqsummarycommand.cpp
cluster.split fix
[mothur.git] / seqsummarycommand.cpp
index 5776b970e6475bf74252d357ff1fef028902a797..7edb717853461ba4cd23f9845b36880dd9ce38ae 100644 (file)
@@ -505,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