X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=chimeraccodecommand.cpp;fp=chimeraccodecommand.cpp;h=925be97f050b10d0b33dd911afc547198cbad712;hp=d890db4087813cc3c4c4e453b55013fa555e7689;hb=60928795782d8f8648ec373d6a96b53032a77429;hpb=cbbf2f185fc7289910bb69421095c1de024c5225 diff --git a/chimeraccodecommand.cpp b/chimeraccodecommand.cpp index d890db4..925be97 100644 --- a/chimeraccodecommand.cpp +++ b/chimeraccodecommand.cpp @@ -639,11 +639,11 @@ int ChimeraCcodeCommand::createProcesses(string outputFileName, string filename, 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){ - num = driver(lines[process], outputFileName + toString(getpid()) + ".temp", filename, accnos + toString(getpid()) + ".temp"); + num = driver(lines[process], outputFileName + toString(m->mothurGetpid(process)) + ".temp", filename, accnos + toString(m->mothurGetpid(process)) + ".temp"); //pass numSeqs to parent ofstream out; - string tempFile = outputFileName + toString(getpid()) + ".num.temp"; + string tempFile = outputFileName + toString(m->mothurGetpid(process)) + ".num.temp"; m->openOutputFile(tempFile, out); out << num << endl; out.close();