Help resolve a conflict in the first commit for TRQ-2124. There are a series of check-ins for this ticket.
Fix a warning and a compile error.
Fix a conflict in cherry picking the fix for TRQ-2022 which allows pbs_mom to handle the new naming format for cpusets as well as the old.
Fix a cpuset bug where if the torque directory existed but wasn't populated pbs_mom wouldn't populate it. Now pbs_mom will make sure that things are populated.
TRQ-2124. Fix a bug in my implementation - the layout reservation must happen before the fork so that the next job doesn't occupy the same space. Cherry pick conflict.
Free tmems if they aren't null to prevent a small memory leak (although the leak is in the child, so it goes unnoticed anyway.
Also for TRQ-2124. Fix a couple more issues in my implementation.
TRQ-2124. Add code to recover how the jobs are layed out if the mom is restarted with running jobs.
TRQ-2124. Remove some debug code that is no longer needed and fix one final bug.