]> git.donarmstrong.com Git - mothur.git/blobdiff - seqerrorcommand.cpp
added mothurgetpid function. fixed bug with align.seqs related to g++ 4.8 change...
[mothur.git] / seqerrorcommand.cpp
index 41ddf35a7705264445749caf8868d80049ae61ac..d196db85e3da3fabf72307f47ac58996833b6457 100644 (file)
@@ -469,11 +469,11 @@ int SeqErrorCommand::createProcesses(string filename, string qFileName, string r
                                process++;
                        }else if (pid == 0){
                                
-                               num = driver(filename, qFileName, rFileName, summaryFileName + toString(getpid()) + ".temp", errorOutputFileName+ toString(getpid()) + ".temp", chimeraOutputFileName + toString(getpid()) + ".temp", lines[process], qLines[process], rLines[process]);
+                               num = driver(filename, qFileName, rFileName, summaryFileName + m->mothurGetpid(process) + ".temp", errorOutputFileName+ m->mothurGetpid(process) + ".temp", chimeraOutputFileName + m->mothurGetpid(process) + ".temp", lines[process], qLines[process], rLines[process]);
                                
                                //pass groupCounts to parent
                                ofstream out;
-                               string tempFile = filename + toString(getpid()) + ".info.temp";
+                               string tempFile = filename + m->mothurGetpid(process) + ".info.temp";
                                m->openOutputFile(tempFile, out);
                                
                                //output totalBases and totalMatches