Check the return value of close() to prevent data loss

When updating the serverdb file or job files, pbs_server will write the
new data out to a temporary file and then overwrite the original.  In
some cases (ENOSPC over NFS, for example), write errors may not show up
until the file is closed.  In this case, keep the old file around (old
data is usually better than data loss).
Check the return value of fclose when updating the nodes file
TRQ-1426 Added a system job start time to the JB file and check that on start up to see if a pid is really ours.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
Fixed a merge error.
Fixed all the unit tests.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
Merge pull request #76 from adaptivecomputing/4.2-dev

4.2 dev
Ported from 4.1.5 for fix to TRQ-1624. Deletion of stray jobs.
src/Makefile.am had an extra line in it that would not let
autogen.sh run correctly.
Fix for stray jobs not getting freed. TRQ-1624. This was
ported from 4.2-dev.
changed unit test header from using lib_dis.h to dis_internal.h
Merge pull request #78 from adaptivecomputing/master

Unit test fix
Fix an error due to a long-standing bug in procs_requested(): previously, if you submitted with -l nodes=100 procs_requested() would return 0, which is an error. It should return 100 in this case.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
Merge pull request #79 from adaptivecomputing/4.2-dev

4.2 dev
Fix some style errors.
Fix some style errors.
TRQ-1426 Cleaned up and more thoroughly checked the routine against QA's improved test.
TRQ-1683. Make it so that the pbs_mom doesn't idle for 2 seconds each time that it processes a tcp_request.