//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
for(int i=0;i<displays.size();i++){
- string tempFile = toString(getpid()) + toString(i) + ".rarefact.temp";
+ string tempFile = m->mothurGetpid(process) + toString(i) + ".rarefact.temp";
displays[i]->outputTempFiles(tempFile);
}
exit(0);