X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=indicatorcommand.cpp;h=74d63688333be27374c36fecc8147bc4419ee8bc;hb=HEAD;hp=ab6e67027b1fe85ff97e2e7d40c1b6f9ff3ff1bc;hpb=499f4ac6e321f9f03d4c3aa25c3b6880892c8b83;p=mothur.git diff --git a/indicatorcommand.cpp b/indicatorcommand.cpp index ab6e670..74d6368 100644 --- a/indicatorcommand.cpp +++ b/indicatorcommand.cpp @@ -1191,7 +1191,7 @@ vector IndicatorCommand::getPValues(vector< vector 0) { processIDS.push_back(pid); //create map from line number to pid so you can append files in correct order later @@ -1201,7 +1201,7 @@ vector IndicatorCommand::getPValues(vector< vectormothurGetpid(process) + ".pvalues.temp"; m->openOutputFile(tempFile, out); //pass values @@ -1369,7 +1369,7 @@ vector IndicatorCommand::getPValues(vector< vector > //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 @@ -1379,7 +1379,7 @@ vector IndicatorCommand::getPValues(vector< vector > //pass pvalues to parent ofstream out; - string tempFile = toString(getpid()) + ".pvalues.temp"; + string tempFile = m->mothurGetpid(process) + ".pvalues.temp"; m->openOutputFile(tempFile, out); //pass values