]> git.donarmstrong.com Git - mothur.git/blobdiff - summaryqualcommand.cpp
changed int to pid_t type in fork(). roughed in get.mimarkscommand.
[mothur.git] / summaryqualcommand.cpp
index 56a6fcb099818b4590e80bff0639193b9bf65767..6396f8ff6f5944fc167d49895a44c5248b5f0523 100644 (file)
@@ -337,7 +337,7 @@ int SummaryQualCommand::createProcessesCreateSummary(vector<int>& position, vect
                
                //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
@@ -347,7 +347,7 @@ int SummaryQualCommand::createProcessesCreateSummary(vector<int>& position, vect
                                
                                //pass numSeqs to parent
                                ofstream out;
-                               string tempFile = qualfile + toString(getpid()) + ".num.temp";
+                               string tempFile = qualfile + m->mothurGetpid(process) + ".num.temp";
                                m->openOutputFile(tempFile, out);
                                
                                out << numSeqs << endl;