]> git.donarmstrong.com Git - mothur.git/blobdiff - getmetacommunitycommand.cpp
added mothurgetpid function. fixed bug with align.seqs related to g++ 4.8 change...
[mothur.git] / getmetacommunitycommand.cpp
index 047f176fa6be9b1c11108f0e007391dae33040c7..288e5ca2e0f84daf6f92eeba2a2b4a93943b596c 100644 (file)
@@ -415,11 +415,11 @@ int GetMetaCommunityCommand::createProcesses(vector<SharedRAbundVector*>& thislo
                                process++;
                        }else if (pid == 0){
                 outputNames.clear();
-                               num = processDriver(thislookup, dividedPartitions[process], (outputFileName + toString(getpid())), rels[process], matrix[process], doneFlags, process);
+                               num = processDriver(thislookup, dividedPartitions[process], (outputFileName + m->mothurGetpid(process)), rels[process], matrix[process], doneFlags, process);
                 
                 //pass numSeqs to parent
                                ofstream out;
-                               string tempFile = toString(getpid()) + ".outputNames.temp";
+                               string tempFile = m->mothurGetpid(process) + ".outputNames.temp";
                                m->openOutputFile(tempFile, out);
                 out << num << endl;
                 out << outputNames.size() << endl;