]> git.donarmstrong.com Git - mothur.git/blobdiff - aligncommand.cpp
cluster.split fix
[mothur.git] / aligncommand.cpp
index 624aab439855f60d9072889ae2cd80b33dae320e..87ca6cbf64f873797aebb733ebb727b2e6f840f0 100644 (file)
@@ -850,7 +850,11 @@ int AlignCommand::createProcesses(string alignFileName, string reportFileName, s
                                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