+ if (abort == true) { if (calledHelp) { return 0; } return 2; }
//incase the user had some mismatches between the tree and group files we don't want group xxx to be analyzed
for (int i = 0; i < globaldata->Groups.size(); i++) { if (globaldata->Groups[i] == "xxx") { globaldata->Groups.erase(globaldata->Groups.begin()+i); break; } }
//incase the user had some mismatches between the tree and group files we don't want group xxx to be analyzed
for (int i = 0; i < globaldata->Groups.size(); i++) { if (globaldata->Groups[i] == "xxx") { globaldata->Groups.erase(globaldata->Groups.begin()+i); break; } }
@@ -289,7+289,7 @@ int PhyloDiversityCommand::createProcesses(vector<int>& procIters, Tree* t, map<
try {
#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
int process = 1;
try {
#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
int process = 1;
- int num = 0;
+
vector<int> processIDS;
map< string, vector<float> >::iterator itSum;
vector<int> processIDS;
map< string, vector<float> >::iterator itSum;
@@ -321,7+321,11 @@ int PhyloDiversityCommand::createProcesses(vector<int>& procIters, Tree* t, map<
out.close();
exit(0);
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); }