]> git.donarmstrong.com Git - mothur.git/blobdiff - pintail.cpp
changed int to pid_t type in fork(). roughed in get.mimarkscommand.
[mothur.git] / pintail.cpp
index b9f2434d19d4cc842bfac1dce4f6de5a0d1b742d..e131371123f179056b816d1e66ebc2b48c2d2611 100644 (file)
@@ -535,7 +535,7 @@ void Pintail::createProcessesQuan() {
                                
                //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);  
@@ -546,7 +546,7 @@ void Pintail::createProcessesQuan() {
                                
                                //write out data to file so parent can read it
                                ofstream out;
-                               string s = toString(getpid()) + ".temp";
+                               string s = m->mothurGetpid(process) + ".temp";
                                m->openOutputFile(s, out);
                                                                
                                //output observed distances