From: Michael Poole Date: Fri, 27 Jul 2007 01:34:04 +0000 (-0400) Subject: Uplink exhaustion should be a non-fatal error, since we exit afterwards. X-Git-Tag: v1.4.0-rc1~10 X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=f0c43dc698b17c827384a52f22daf905612fab37 Uplink exhaustion should be a non-fatal error, since we exit afterwards. src/main-common.c: Demote LOG_FATAL errors to LOG_ERROR so that we do not generate a core file by tripping the assert() in LOG_FATAL. --- diff --git a/src/main-common.c b/src/main-common.c index 248d610..16ba7c7 100644 --- a/src/main-common.c +++ b/src/main-common.c @@ -275,7 +275,7 @@ uplink_select(char *name) if(max_cycles && (cManager.cycles >= max_cycles)) { - log_module(MAIN_LOG, LOG_FATAL, "Maximum uplink list cycles exceeded; giving up."); + log_module(MAIN_LOG, LOG_ERROR, "Maximum uplink list cycles exceeded; giving up."); exit(1); } @@ -312,7 +312,7 @@ uplink_select(char *name) over. Use the current uplink if possible. */ if(!cManager.uplink || cManager.uplink->flags & UPLINK_UNAVAILABLE) { - log_module(MAIN_LOG, LOG_FATAL, "All available uplinks exhausted; giving up."); + log_module(MAIN_LOG, LOG_ERROR, "All available uplinks exhausted; giving up."); exit(1); }