X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=countseqscommand.cpp;h=88c1409b0dc48f18b07ed418339ffc47ca7166f8;hb=60928795782d8f8648ec373d6a96b53032a77429;hp=301aff7007c309d18952f04493188b9330b56f55;hpb=cbbf2f185fc7289910bb69421095c1de024c5225;p=mothur.git diff --git a/countseqscommand.cpp b/countseqscommand.cpp index 301aff7..88c1409 100644 --- a/countseqscommand.cpp +++ b/countseqscommand.cpp @@ -433,10 +433,10 @@ int CountSeqsCommand::createProcesses(GroupMap*& groupMap, string outputFileName 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){ - string filename = toString(getpid()) + ".temp"; + string filename = m->mothurGetpid(process) + ".temp"; numSeqs = driver(lines[process].start, lines[process].end, filename, groupMap); - string tempFile = toString(getpid()) + ".num.temp"; + string tempFile = m->mothurGetpid(process) + ".num.temp"; ofstream outTemp; m->openOutputFile(tempFile, outTemp); @@ -451,7 +451,7 @@ int CountSeqsCommand::createProcesses(GroupMap*& groupMap, string outputFileName } } - string filename = toString(getpid()) + ".temp"; + string filename = m->mothurGetpid(process) + ".temp"; numSeqs = driver(lines[processors-1].start, lines[processors-1].end, filename, groupMap); //force parent to wait until all the processes are done