Save timeout across multiple calls to Selector::execute() #4088

The value of the timeout argument to select() is undefined after the
call returns. Save the desired timeout in the Selector object so that
multiple calles to Selector::execute() behave in a defined manner.
This will be useful for some new users of Selector.
Use Selector class in more places to avoid buffer overflows. #4088

Using select() with simple fd_sets leads to buffer overflows if any of
the selected fds have values greater than 1023. We've seen a crash in
the procd communication code because of this. Now, we use the Selector
class everywhere outside of the checkpointing code.
error trashed by threading code for some IO operations. #4089

Save errno (or WSAGetLastError() on win32) before calls to
stop_thread_safe() if we're interested in the value. stop_thread_safe()
makes calls (like dprintf()) that may overwrite the error value.
Docs for select() fd_set stack corruption bug. #4088
Fix filename collision when NorduGrid ARC submits into HTCondor. #4017

When the gridmanager submits a job to nordugrid, it names the stdout/err
files _condor_stdout/err. When a Condor vanilla universe job uses file
transfer, it also names the stdout/err files _condor_stdout/err.
NorduGrid ARC wraps the job with a script that explicitly captures the
job's stdout/err using the filenames given by the submitter.
Put all of these together and the job's stdout/err gets mingled with
that of the wrapper script and not returned to the submitter.

Change the names used by the gridmanager to avoid this. We include a
sanitized version of the GlobalJobId to avoid possible collisions in the
future.
Docs for nordugrid stdout/err scrambling bugfix. #4017
Minor 8.0.5 version history item edit. #4087
In 8.0.5, edit of prose describing DAGMan's ABORT-DAG-ON functionality.
 #3989
Minor formatting of 8.0.5 version history item. #3091
Fix bug with PREEMPTION_REQUIREMENTS and surplus sharing #4093
Merge branch 'V8_0-branch' of /p/condor/repository/CONDOR_SRC into V8_0-branch
Merge branch 'V8_0-branch'