X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bellerophon.cpp;h=59c70a0a6b45697c2dab20849587d27e55a05537;hb=aca78ed4a47dff8672ea8fd93cef0dfbaf0f7495;hp=833cfb907d6d4bd2aed8acb3d8522932ac3b2e7d;hpb=91a27e0483827c06c21c4fe89558923bbfe86573;p=mothur.git diff --git a/bellerophon.cpp b/bellerophon.cpp index 833cfb9..59c70a0 100644 --- a/bellerophon.cpp +++ b/bellerophon.cpp @@ -363,14 +363,14 @@ int Bellerophon::createProcesses(vector 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 {