X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=chimeracheckcommand.cpp;h=988c7112fc1109118f13ed6d45f160930d833dda;hb=60928795782d8f8648ec373d6a96b53032a77429;hp=64ed9faa73e7cb72e5e307cc10e86f1a9bcfc195;hpb=d39f94cf9bceeae887b211eec862da5c9c77e10d;p=mothur.git diff --git a/chimeracheckcommand.cpp b/chimeracheckcommand.cpp index 64ed9fa..988c711 100644 --- a/chimeracheckcommand.cpp +++ b/chimeracheckcommand.cpp @@ -628,11 +628,11 @@ int ChimeraCheckCommand::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); + num = driver(lines[process], outputFileName + toString(m->mothurGetpid(process)) + ".temp", filename); //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();