Log received signals as DEBUG (misc signal) or INFO (during shutdown)
in the router, since these are not error conditions, but normal
operations.
A warning may ultimately be logged at a higher level when the signal is
unexpected.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
if( (selectret = select(maxfd + 1, &set, NULL, NULL, NULL)) < 0 ) {
if( EINTR == errno ) {
if( router->stop ) {
- osrfLogWarning( OSRF_LOG_MARK, "Top level select call interrupted by signal" );
+ osrfLogInfo(OSRF_LOG_MARK, "Router shutting down");
break;
}
else
if( stop_signal ) {
// Interrupted by a signal? Re-raise so the parent can see it.
- osrfLogWarning( OSRF_LOG_MARK, "Interrupted by signal %d; re-raising",
- (int) stop_signal );
+ osrfLogDebug(OSRF_LOG_MARK,
+ "Router received signal %d; re-raising", (int) stop_signal);
signal( stop_signal, SIG_DFL );
raise( stop_signal );
}