]> git.donarmstrong.com Git - mothur.git/blobdiff - classifyseqscommand.cpp
cluster.split fix
[mothur.git] / classifyseqscommand.cpp
index b8d5b8efdc1d086a556c6ff0ea07332fd4470cf8..3876c6c59066ee74da67ff673a8cbb5ab3501d54 100644 (file)
@@ -757,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