]> git.donarmstrong.com Git - mothur.git/blobdiff - chimerapintailcommand.cpp
cluster.split fix
[mothur.git] / chimerapintailcommand.cpp
index b355f6da6ac5839a054d4503e4dbb4f43237c23a..abab7a3ddc9dba00b9981cc1df7b464084be902b 100644 (file)
@@ -678,7 +678,11 @@ int ChimeraPintailCommand::createProcesses(string outputFileName, string filenam
                                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