//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
process++;
}else if (pid == 0){
exitCommand = driverChimeras(mid, lines[process]);
- string tempOut = outputDir + toString(getpid()) + ".temp";
+ string tempOut = outputDir + toString(m->mothurGetpid(process)) + ".temp";
writePrefs(tempOut, lines[process]);
exit(0);
}else {