X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=shhhercommand.cpp;fp=shhhercommand.cpp;h=21dd089c40824d0df1d1e6cdd4ec27eed977cd36;hp=7fa99f1b04fd2632bf4d6e59ab08db6d1a38c1d9;hb=60928795782d8f8648ec373d6a96b53032a77429;hpb=cbbf2f185fc7289910bb69421095c1de024c5225 diff --git a/shhhercommand.cpp b/shhhercommand.cpp index 7fa99f1..21dd089 100644 --- a/shhhercommand.cpp +++ b/shhhercommand.cpp @@ -2076,11 +2076,11 @@ int ShhherCommand::createProcesses(vector filenames){ 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){ - num = driver(dividedFiles[process], compositeFASTAFileName + toString(getpid()) + ".temp", compositeNamesFileName + toString(getpid()) + ".temp"); + num = driver(dividedFiles[process], compositeFASTAFileName + m->mothurGetpid(process) + ".temp", compositeNamesFileName + m->mothurGetpid(process) + ".temp"); //pass numSeqs to parent ofstream out; - string tempFile = compositeFASTAFileName + toString(getpid()) + ".num.temp"; + string tempFile = compositeFASTAFileName + m->mothurGetpid(process) + ".num.temp"; m->openOutputFile(tempFile, out); out << num << endl; out.close();