Fix some double-defined things in the unit tests with cpusets enabled.
Fixed handle_job_recovery to be able to properly handle
array jobs and still not allow duplicate entries.
TRQ-2492
TRQ-2501. Help the cherry-pick.
Help the cherry-pick for adding speed instrumentation to TORQUE.
Put in a retry loop in qsub if a request fails to reduce the
number of permanent failures while making the call. TRQ-2417
Fixed two small memory leaks. TRQ-2498
Made a change to log_remove_old to alleviate a problem
where the current mom_log is deleted when $log_keep_days
is set. For NFS file systems it seems that the math
we were using to decide if a file should be deleted made it possible
for the current file to be deleted if the NFS server time and
pbs_mom host time were off slightly. TRQ-1305
Added unit tests for log_remove_old. TRQ-1305
Fix some coverity issues.
Fixed a cherry-pick from master to fix a deadlock found by Coverity
Fix for trq-2484: TROQUE is not honoring environment variables that don't have a value.
Added unit test for TRQ-2484: Torque not honoring env. variables that have empty values.
Corrected a message for a unit test.
 fixed Coverity issue 1147772. Write to a pointer after free.
Fixed Coverity issue 1187617. Write to pointer after free in req_runjob.
This also exposed a memory leak with preq.
fixed Coverity issues 1187612, 1187611 and 1187610.
Uninitialized scalar variables.
Fix the post-install script for the server
term_job runs in a loop on the same job and calls node_bailout
which eventually calls exec_bail. exec_bail does a close
on ji_stdout and ji_std_err. exec_bail was already checking
to see if these values were > 0 but they were never changed.
After closing the files the file descriptors or set to -1 so
they cannot be closed again. Coverity issue 1187622
fixed to memory leaks for error cases in procs_requested.
Patch submitted by Craig Prescott. TRQ-2498
Removed close(stream) from mom_server_stream_error
since we close the streams after each call to this function.
This fixes a double free error found by Coverity. issue 1187620