]> git.donarmstrong.com Git - mothur.git/blobdiff - pairwiseseqscommand.cpp
added mothurgetpid function. fixed bug with align.seqs related to g++ 4.8 change...
[mothur.git] / pairwiseseqscommand.cpp
index f874e9a869d269546c04ce8fd9648786dcc4bab1..357724d64ec154de5de813d5f129a373272e2cb0 100644 (file)
@@ -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();