X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=filterseqscommand.cpp;h=031ac0ecf5f6d5fcc6d8449fd8b35a90a95aba85;hb=60928795782d8f8648ec373d6a96b53032a77429;hp=4ac3381d384edf1979f78c911381e040666b8afe;hpb=cbbf2f185fc7289910bb69421095c1de024c5225;p=mothur.git diff --git a/filterseqscommand.cpp b/filterseqscommand.cpp index 4ac3381..031ac0e 100644 --- a/filterseqscommand.cpp +++ b/filterseqscommand.cpp @@ -659,12 +659,12 @@ int FilterSeqsCommand::createProcessesRunFilter(string F, string filename, strin 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 filteredFasta = filename + toString(getpid()) + ".temp"; + string filteredFasta = filename + m->mothurGetpid(process) + ".temp"; num = driverRunFilter(F, filteredFasta, filename, lines[process]); //pass numSeqs to parent ofstream out; - string tempFile = filename + toString(getpid()) + ".num.temp"; + string tempFile = filename + m->mothurGetpid(process) + ".num.temp"; m->openOutputFile(tempFile, out); out << num << endl; out.close(); @@ -1095,7 +1095,7 @@ int FilterSeqsCommand::createProcessesCreateFilter(Filters& F, string filename) num = driverCreateFilter(F, filename, lines[process]); //write out filter counts to file - filename += toString(getpid()) + "filterValues.temp"; + filename += m->mothurGetpid(process) + "filterValues.temp"; ofstream out; m->openOutputFile(filename, out);