//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);
//write out data to file so parent can read it
ofstream out;
- string s = toString(getpid()) + ".temp";
+ string s = m->mothurGetpid(process) + ".temp";
m->openOutputFile(s, out);
//output observed distances