X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=trimflowscommand.cpp;h=5800cde2146f108ae6efc3d1bce50b9bb9913750;hb=aca78ed4a47dff8672ea8fd93cef0dfbaf0f7495;hp=33349decab52e90be19c928b44b9b07c8f6c710a;hpb=a2cde58c1e72199498a2142983ef040dce36da10;p=mothur.git diff --git a/trimflowscommand.cpp b/trimflowscommand.cpp index 33349de..5800cde 100644 --- a/trimflowscommand.cpp +++ b/trimflowscommand.cpp @@ -825,7 +825,7 @@ int TrimFlowsCommand::createProcessesCreateTrim(string flowFileName, string trim //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 @@ -837,7 +837,7 @@ int TrimFlowsCommand::createProcessesCreateTrim(string flowFileName, string trim for(int i=0;imothurGetpid(process) + ".temp"; ofstream temp; m->openOutputFile(tempBarcodePrimerComboFileNames[i][j], temp); temp.close(); @@ -846,9 +846,9 @@ int TrimFlowsCommand::createProcessesCreateTrim(string flowFileName, string trim } } driverCreateTrim(flowFileName, - (trimFlowFileName + toString(getpid()) + ".temp"), - (scrapFlowFileName + toString(getpid()) + ".temp"), - (fastaFileName + toString(getpid()) + ".temp"), + (trimFlowFileName + m->mothurGetpid(process) + ".temp"), + (scrapFlowFileName + m->mothurGetpid(process) + ".temp"), + (fastaFileName + m->mothurGetpid(process) + ".temp"), tempBarcodePrimerComboFileNames, lines[process]); exit(0);