]> git.donarmstrong.com Git - mothur.git/blobdiff - indicatorcommand.cpp
update .gitignore
[mothur.git] / indicatorcommand.cpp
index ab6e67027b1fe85ff97e2e7d40c1b6f9ff3ff1bc..74d63688333be27374c36fecc8147bc4419ee8bc 100644 (file)
@@ -1191,7 +1191,7 @@ vector<float> IndicatorCommand::getPValues(vector< vector<SharedRAbundFloatVecto
                                                
                        //loop through and create all the processes you want
                        while (process != processors) {
-                               int pid = fork();
+                               pid_t pid = fork();
                                
                                if (pid > 0) {
                                        processIDS.push_back(pid);  //create map from line number to pid so you can append files in correct order later
@@ -1201,7 +1201,7 @@ vector<float> IndicatorCommand::getPValues(vector< vector<SharedRAbundFloatVecto
                                        
                                        //pass pvalues to parent
                                        ofstream out;
-                                       string tempFile = toString(getpid()) + ".pvalues.temp";
+                                       string tempFile = m->mothurGetpid(process) + ".pvalues.temp";
                                        m->openOutputFile(tempFile, out);
                                        
                                        //pass values
@@ -1369,7 +1369,7 @@ vector<float> IndicatorCommand::getPValues(vector< vector<SharedRAbundVector*> >
             
                        //loop through and create all the processes you want
                        while (process != processors) {
-                               int pid = fork();
+                               pid_t pid = fork();
                                
                                if (pid > 0) {
                                        processIDS.push_back(pid);  //create map from line number to pid so you can append files in correct order later
@@ -1379,7 +1379,7 @@ vector<float> IndicatorCommand::getPValues(vector< vector<SharedRAbundVector*> >
                                        
                                        //pass pvalues to parent
                                        ofstream out;
-                                       string tempFile = toString(getpid()) + ".pvalues.temp";
+                                       string tempFile = m->mothurGetpid(process) + ".pvalues.temp";
                                        m->openOutputFile(tempFile, out);
                                        
                                        //pass values