if (namefile != "") { nameMap = m->readNames(namefile); }
else if (countfile != "") {
CountTable ct;
- ct.readTable(countfile, false);
+ ct.readTable(countfile, false, false);
nameMap = ct.getNameMap();
}
//loop through and create all the processes you want
while (process != processors) {
- int pid = fork();
+ pid_t pid = fork();
if (pid > 0) {
processIDS.push_back(pid); //create map from line number to pid so you can append files in correct order later
//pass numSeqs to parent
ofstream out;
- string tempFile = qualfile + toString(getpid()) + ".num.temp";
+ string tempFile = qualfile + m->mothurGetpid(process) + ".num.temp";
m->openOutputFile(tempFile, out);
out << numSeqs << endl;