X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=seqerrorcommand.cpp;h=d196db85e3da3fabf72307f47ac58996833b6457;hb=60928795782d8f8648ec373d6a96b53032a77429;hp=41ddf35a7705264445749caf8868d80049ae61ac;hpb=cbbf2f185fc7289910bb69421095c1de024c5225;p=mothur.git diff --git a/seqerrorcommand.cpp b/seqerrorcommand.cpp index 41ddf35..d196db8 100644 --- a/seqerrorcommand.cpp +++ b/seqerrorcommand.cpp @@ -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