]> git.donarmstrong.com Git - mothur.git/blobdiff - clustersplitcommand.cpp
added mothurgetpid function. fixed bug with align.seqs related to g++ 4.8 change...
[mothur.git] / clustersplitcommand.cpp
index 874eb6d7b535e9e400cca8f22593280ecd959b42..0dae8934f9331cdf5364769d6736a14e4fa56065 100644 (file)
@@ -981,7 +981,7 @@ vector<string>  ClusterSplitCommand::createProcesses(vector< map<string, string>
                                vector<string> listFileNames = cluster(dividedNames[process], labels);
                                
                                //write out names to file
-                               string filename = toString(getpid()) + ".temp";
+                               string filename = m->mothurGetpid(process) + ".temp";
                                ofstream out;
                                m->openOutputFile(filename, out);
                                out << tag << endl;
@@ -990,7 +990,7 @@ vector<string>  ClusterSplitCommand::createProcesses(vector< map<string, string>
                                
                                //print out labels
                                ofstream outLabels;
-                               filename = toString(getpid()) + ".temp.labels";
+                               filename = m->mothurGetpid(process) + ".temp.labels";
                                m->openOutputFile(filename, outLabels);
                                
                                outLabels << cutoff << endl;