]> git.donarmstrong.com Git - mothur.git/blobdiff - chimeraslayercommand.cpp
cluster.split fix
[mothur.git] / chimeraslayercommand.cpp
index dbdd4a9eeca506fab01005f2cf752452beb8310a..cd84bdca5f27726b9547b58c429afe74112fee84 100644 (file)
@@ -610,7 +610,11 @@ int ChimeraSlayerCommand::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