xrddefault: Use parsed and massaged main temp_file for retention data

Changing things around so config parsing happens in *one* place
would've been a pretty good idea quite some time ago, but this
will at least make retention data temp-files go to the right
place.

Signed-off-by: Andreas Ericsson <ae@op5.se>

git-svn-id: https://nagios.svn.sourceforge.net/svnroot/nagios/nagioscore/trunk@2648 5f96b256-904b-4d8d-8c98-d829582c6739
core: Refuse to start if modules don't load for some reason

Since nebmodules are an integral part of the Nagios system the
user expects to bring to life (as of several years now), failure
to load one or more of them should be considered critical.

Suggested-by: Mark Frost <mark.frost1@pepsico.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>

git-svn-id: https://nagios.svn.sourceforge.net/svnroot/nagios/nagioscore/trunk@2649 5f96b256-904b-4d8d-8c98-d829582c6739
lib/wproc: Stop printing signal name

strsignal() isn't very portable, and it's broken on some RHEL 5
systems, so we just drop printing the name and leave that as an
exercise for the reader to look up for themselves.

Signed-off-by: Andreas Ericsson <ae@op5.se>

git-svn-id: https://nagios.svn.sourceforge.net/svnroot/nagios/nagioscore/trunk@2650 5f96b256-904b-4d8d-8c98-d829582c6739
lib/worker: Do one last round of output gathering in finish_job()

But only if the filedescriptors aren't -1 ofcourse. This works
around a bug (or at least an oddity) with the epoll() interface
on Linux kernels older than 2.6.31. Since later kernels will
do the extra calls very rarely anyway (when a plugin times out
and we kill it ourselves), we make them unconditional to make
sure the code gets some exercise.

To avoid unpleasantries of re-entering parent function and things
like that, we revamp the static functions gather_output() and
finish_job() somewhat.

Signed-off-by: Andreas Ericsson <ae@op5.se>

git-svn-id: https://nagios.svn.sourceforge.net/svnroot/nagios/nagioscore/trunk@2651 5f96b256-904b-4d8d-8c98-d829582c6739