First commit towards TRQ-2124. This has the mom keep a snapshot of the internal memory for the node and make sure to assign memory nodes appropriately when using cpusets. It still needs to handle threads more intelligently.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
Fix a warning and a compile error.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
Fixed Unit Tests for qstat
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
TRQ-2022. Make pbs_mom capable of handling either format for cpuset files, whether they are named things like cpuset.mems or just mems.
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.
Fixed pam_pbssimpleauth.c to accept jobdir=<jobdir>

If 'jobdir' is specified in pam configuration, pam_pbssimpleauth.c previously copied the string 'jobdir' over the compile-time default value of PBS_SERVER_HOME '/mom_priv/jobs'.

This change fixes it to copy the path part of a 'jobdir=<path to jobs>' pam configuration option in, for example, /etc/pam.d/password-auth, of the form:

account     required      pam_pbssimpleauth.so jobdir=/var/spool/torque/mom_priv/jobs
Fixed a memory leak when removing job usage information from
a node when a job is complete. TRQ-1599
Fixed a memory leak in set_nodes where host_info was not
getting freed. TRQ-1599
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.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
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-2070. Wrap trqautd's call to getpwuid() in a retry loop to account for transient failures. We've done this other places as sometimes LDAP servers fail transiently with legitimate calls.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
TRQ-2124. Remove some debug code that is no longer needed and fix one final bug.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev