Merge pull request #66 from kainx/master

RPM munge support
TRQ-1646. Fix a deadlock when submitting one large array that depends on another large array submitted immediately before it.
Merge branch 'master' of https://github.com/adaptivecomputing/torque
Add one of the files generated by a unit test to .gitignore.
Make send_depend_req() follow the proper locking model: before this change send_depend_req() would receive a locked job and return with said job unlocked. This doesn't follow the proper model - functions that receive a locked object should return with the object locked, unless the object disappears during the execution of the function. If the job disappears, send_depend_req() now returns PBSE_JOBNOTFOUND.
Fix alter_unreg() so that it follows the proper locking model. Before it came in locked and left unlocked. This now follows the proper model.
Fix depend_on_que() to also follow the proper locking order. It also unlocked a job that it received locked.
Change depend_on_term() to be a bit more normal. Before, we would unlock the job and pass the id over to depend_on_term(), which would then lock, but then leave unlocked. The caller would then have to re-lock the job. Now, it receives the job locked and exits with the job locked.
Change release_cheapest so that it returns an error if the job disappears mid-execution.
Fix two errors with the patches I've just made to req_register.c in order to make functions follow the normal locking pattern.
TRQ-1605. Make monitor_route_retry_thread() check for the value of (pthread_t)-1 before checking if the process still exists, as -1 indicates that it doesn't.