- driverGroups(parser, newFName + toString(getpid()) + ".temp", newNName + toString(getpid()) + ".temp", newMName, lines[process].start, lines[process].end, groups);
+ mapfileNames = driverGroups(parser, newFName + toString(getpid()) + ".temp", newNName + toString(getpid()) + ".temp", newMName, lines[process].start, lines[process].end, groups);
+
+ //pass filenames to parent
+ ofstream out;
+ string tempFile = newMName + toString(getpid()) + ".temp";
+ m->openOutputFile(tempFile, out);
+ out << mapfileNames.size() << endl;
+ for (int i = 0; i < mapfileNames.size(); i++) {
+ out << mapfileNames[i] << endl;
+ }
+ out.close();
+