]> git.donarmstrong.com Git - mothur.git/blobdiff - phylodiversitycommand.cpp
added mothurgetpid function. fixed bug with align.seqs related to g++ 4.8 change...
[mothur.git] / phylodiversitycommand.cpp
index 339649c7dcc814ac409e5b8ec1dfd432b544e43d..b84ee2544638f17df4bf4a225ecd2bfb6c22842a 100644 (file)
@@ -420,7 +420,7 @@ int PhyloDiversityCommand::createProcesses(vector<int>& procIters, Tree* t, map<
                        }else if (pid == 0){
                                driver(t, div, sumDiv, procIters[process], increment, randomLeaf, numSampledList, outCollect, outSum, false);
                                
-                               string outTemp = outputDir + toString(getpid()) + ".sumDiv.temp";
+                               string outTemp = outputDir + m->mothurGetpid(process) + ".sumDiv.temp";
                                ofstream out;
                                m->openOutputFile(outTemp, out);