X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=chopseqscommand.cpp;h=8c82992854d06d9a559ecd2cf32149ffbaef5b3c;hb=60928795782d8f8648ec373d6a96b53032a77429;hp=96d7ae641b8b956694fe5ad12b9671c0279b302c;hpb=cbbf2f185fc7289910bb69421095c1de024c5225;p=mothur.git diff --git a/chopseqscommand.cpp b/chopseqscommand.cpp index 96d7ae6..8c82992 100644 --- a/chopseqscommand.cpp +++ b/chopseqscommand.cpp @@ -378,11 +378,11 @@ bool ChopSeqsCommand::createProcesses(vector lines, string filename, s processIDS.push_back(pid); //create map from line number to pid so you can append files in correct order later process++; }else if (pid == 0){ - wroteAccnos = driver(lines[process], filename, outFasta + toString(getpid()) + ".temp", outAccnos + toString(getpid()) + ".temp"); + wroteAccnos = driver(lines[process], filename, outFasta + m->mothurGetpid(process) + ".temp", outAccnos + m->mothurGetpid(process) + ".temp"); //pass numSeqs to parent ofstream out; - string tempFile = fastafile + toString(getpid()) + ".bool.temp"; + string tempFile = fastafile + m->mothurGetpid(process) + ".bool.temp"; m->openOutputFile(tempFile, out); out << wroteAccnos << endl; out.close();