]> git.donarmstrong.com Git - mothur.git/blobdiff - bellerophon.cpp
working on sra and get.mimarkspackage commands. added file parameter to cluster...
[mothur.git] / bellerophon.cpp
index 833cfb907d6d4bd2aed8acb3d8522932ac3b2e7d..59c70a0a6b45697c2dab20849587d27e55a05537 100644 (file)
@@ -363,14 +363,14 @@ int Bellerophon::createProcesses(vector<int> mid) {
                                
                //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
                                process++;
                        }else if (pid == 0){
                                exitCommand = driverChimeras(mid, lines[process]);
-                               string tempOut = outputDir + toString(getpid()) + ".temp";
+                               string tempOut = outputDir + toString(m->mothurGetpid(process)) + ".temp";
                                writePrefs(tempOut, lines[process]);
                                exit(0);
                        }else {