X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sffmultiplecommand.cpp;h=c1dd258c43b5c37fdc434dedc9155c1a07241e23;hb=60928795782d8f8648ec373d6a96b53032a77429;hp=f75662b30f258ecf30b3e20e79a76362f633c069;hpb=89cfcfcc9e648d2f956f2ff419e64ba7907106d2;p=mothur.git diff --git a/sffmultiplecommand.cpp b/sffmultiplecommand.cpp index f75662b..c1dd258 100644 --- a/sffmultiplecommand.cpp +++ b/sffmultiplecommand.cpp @@ -753,11 +753,11 @@ int SffMultipleCommand::createProcesses(vector sffFiles, vector 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(sffFiles, oligosFiles, lines[process].start, lines[process].end, fasta + toString(getpid()) + ".temp", name + toString(getpid()) + ".temp", group + toString(getpid()) + ".temp"); + num = driver(sffFiles, oligosFiles, lines[process].start, lines[process].end, fasta + m->mothurGetpid(process) + ".temp", name + m->mothurGetpid(process) + ".temp", group + m->mothurGetpid(process) + ".temp"); //pass numSeqs to parent ofstream out; - string tempFile = toString(getpid()) + ".num.temp"; + string tempFile = m->mothurGetpid(process) + ".num.temp"; m->openOutputFile(tempFile, out); out << num << '\t' << outputNames.size() << endl; for (int i = 0; i < outputNames.size(); i++) { out << outputNames[i] << endl; }