X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=pairwiseseqscommand.cpp;h=357724d64ec154de5de813d5f129a373272e2cb0;hb=60928795782d8f8648ec373d6a96b53032a77429;hp=f874e9a869d269546c04ce8fd9648786dcc4bab1;hpb=cbbf2f185fc7289910bb69421095c1de024c5225;p=mothur.git diff --git a/pairwiseseqscommand.cpp b/pairwiseseqscommand.cpp index f874e9a..357724d 100644 --- a/pairwiseseqscommand.cpp +++ b/pairwiseseqscommand.cpp @@ -528,8 +528,8 @@ void PairwiseSeqsCommand::createProcesses(string filename) { processIDS.push_back(pid); process++; }else if (pid == 0){ - if (output != "square") { driver(lines[process].start, lines[process].end, filename + toString(getpid()) + ".temp", cutoff); } - else { driver(lines[process].start, lines[process].end, filename + toString(getpid()) + ".temp", "square"); } + if (output != "square") { driver(lines[process].start, lines[process].end, filename + m->mothurGetpid(process) + ".temp", cutoff); } + else { driver(lines[process].start, lines[process].end, filename + m->mothurGetpid(process) + ".temp", "square"); } exit(0); }else { m->mothurOut("[ERROR]: unable to spawn the necessary processes."); m->mothurOutEndLine();