]> git.donarmstrong.com Git - mothur.git/blobdiff - chimeracheckcommand.cpp
cluster.split fix
[mothur.git] / chimeracheckcommand.cpp
index b3f49a4916056a3b9e9ddb881f041513507c49d2..abf6b90c161671a231c370caa55c20f317319b60 100644 (file)
@@ -572,7 +572,11 @@ int ChimeraCheckCommand::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