]> git.donarmstrong.com Git - mothur.git/blobdiff - chimeraccodecommand.cpp
cluster.split fix
[mothur.git] / chimeraccodecommand.cpp
index 5f90a084be41767698fb2b231fca4e13deca2942..286681a51d78de92590d7677a2e67a3c70fcaec1 100644 (file)
@@ -597,7 +597,11 @@ int ChimeraCcodeCommand::createProcesses(string outputFileName, string filename,
                                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