From f0c43dc698b17c827384a52f22daf905612fab37 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Thu, 26 Jul 2007 21:34:04 -0400 Subject: [PATCH] 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. --- src/main-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.20.1