]> git.donarmstrong.com Git - mothur.git/blobdiff - bellerophon.cpp
cluster.split fix
[mothur.git] / bellerophon.cpp
index 4f48d9ce03b64ec2a5c1f52d4d3ef2feaab9d8a5..761d291da566aa1495b4f4a8e75079f1a619a617 100644 (file)
@@ -373,7 +373,11 @@ int Bellerophon::createProcesses(vector<int> mid) {
                                string tempOut = outputDir + toString(getpid()) + ".temp";
                                writePrefs(tempOut, lines[process]);
                                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