X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=shhhseqscommand.cpp;h=f9983224f36eea8451f88d07c4f4beaf3090c4bc;hb=60928795782d8f8648ec373d6a96b53032a77429;hp=0cc6eb4d24d8a963b87ae58012f341d6e0c47e79;hpb=cbbf2f185fc7289910bb69421095c1de024c5225;p=mothur.git diff --git a/shhhseqscommand.cpp b/shhhseqscommand.cpp index 0cc6eb4..f998322 100644 --- a/shhhseqscommand.cpp +++ b/shhhseqscommand.cpp @@ -398,11 +398,11 @@ vector ShhhSeqsCommand::createProcessesGroups(SequenceParser& parser, st 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){ - mapfileNames = driverGroups(parser, newFName + toString(getpid()) + ".temp", newNName + toString(getpid()) + ".temp", newMName, lines[process].start, lines[process].end, groups); + mapfileNames = driverGroups(parser, newFName + m->mothurGetpid(process) + ".temp", newNName + m->mothurGetpid(process) + ".temp", newMName, lines[process].start, lines[process].end, groups); //pass filenames to parent ofstream out; - string tempFile = newMName + toString(getpid()) + ".temp"; + string tempFile = newMName + m->mothurGetpid(process) + ".temp"; m->openOutputFile(tempFile, out); out << mapfileNames.size() << endl; for (int i = 0; i < mapfileNames.size(); i++) {