X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=bellerophon.cpp;h=761d291da566aa1495b4f4a8e75079f1a619a617;hb=3a13eff5c26d6fc156a299c9fa7f5497bded94a0;hp=4f48d9ce03b64ec2a5c1f52d4d3ef2feaab9d8a5;hpb=260ae19c36cb11a53ddc5a75b5e507f8dd8b31d6;p=mothur.git diff --git a/bellerophon.cpp b/bellerophon.cpp index 4f48d9c..761d291 100644 --- a/bellerophon.cpp +++ b/bellerophon.cpp @@ -373,7 +373,11 @@ int Bellerophon::createProcesses(vector 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