try {
#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
int process = 1;
- int num = 0;
+
vector<int> processIDS;
EstOutput results;
displays[i]->outputTempFiles(tempFile);
}
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);
+ }
}
driver(rcd, increment, procIters[0]);
}
//if jumble is false all iters will be the same
- if (globaldata->jumble == false) { nIters = 1; }
+ if (m->jumble == false) { nIters = 1; }
//convert freq percentage to number
int increment = 1;
displays[i]->init(label);
}
- if (globaldata->jumble == true) {
+ if (m->jumble == true) {
//randomize the groups
random_shuffle(lookup.begin(), lookup.end());
}