X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=screenseqscommand.cpp;h=4671b7926df8866ea2d3beee6e6706b448047b6d;hb=60928795782d8f8648ec373d6a96b53032a77429;hp=bf702e13534f507576bee7c24bcf6462aacb7ca3;hpb=ac03f1f6c27b5bfdf2cfb6d45c3667c3e0281f51;p=mothur.git diff --git a/screenseqscommand.cpp b/screenseqscommand.cpp index bf702e1..4671b79 100644 --- a/screenseqscommand.cpp +++ b/screenseqscommand.cpp @@ -1443,7 +1443,7 @@ int ScreenSeqsCommand::createProcessesContigsSummary(vector& oLength, vecto //pass numSeqs to parent ofstream out; - string tempFile = contigsreport + toString(getpid()) + ".num.temp"; + string tempFile = contigsreport + m->mothurGetpid(process) + ".num.temp"; m->openOutputFile(tempFile, out); out << num << endl; @@ -1713,7 +1713,7 @@ int ScreenSeqsCommand::createProcessesAlignSummary(vector& sims, vectormothurGetpid(process) + ".num.temp"; m->openOutputFile(tempFile, out); out << num << endl; @@ -1996,7 +1996,7 @@ int ScreenSeqsCommand::createProcessesCreateSummary(vector& startPosition, //pass numSeqs to parent ofstream out; - string tempFile = fastafile + toString(getpid()) + ".num.temp"; + string tempFile = fastafile + m->mothurGetpid(process) + ".num.temp"; m->openOutputFile(tempFile, out); out << num << endl; @@ -2532,11 +2532,11 @@ int ScreenSeqsCommand::createProcesses(string goodFileName, string badAccnos, 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){ - num = driver(lines[process], goodFileName + toString(getpid()) + ".temp", badAccnos + toString(getpid()) + ".temp", filename, badSeqNames); + num = driver(lines[process], goodFileName + m->mothurGetpid(process) + ".temp", badAccnos + m->mothurGetpid(process) + ".temp", filename, badSeqNames); //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();