X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=classifyseqscommand.cpp;fp=classifyseqscommand.cpp;h=d494068522e692386dd0ed7a0025c9fb25b416ed;hp=30bfd9e486c151572940ce461f14a05ed46e5721;hb=60928795782d8f8648ec373d6a96b53032a77429;hpb=cbbf2f185fc7289910bb69421095c1de024c5225 diff --git a/classifyseqscommand.cpp b/classifyseqscommand.cpp index 30bfd9e..d494068 100644 --- a/classifyseqscommand.cpp +++ b/classifyseqscommand.cpp @@ -980,11 +980,11 @@ int ClassifySeqsCommand::createProcesses(string taxFileName, string tempTaxFile, 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], taxFileName + toString(getpid()) + ".temp", tempTaxFile + toString(getpid()) + ".temp", accnos + toString(getpid()) + ".temp", filename); + num = driver(lines[process], taxFileName + m->mothurGetpid(process) + ".temp", tempTaxFile + m->mothurGetpid(process) + ".temp", accnos + m->mothurGetpid(process) + ".temp", filename); //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();