LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Running Keepalived without debug info

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Running Keepalived without debug info
From: Magnus Nordseth <magnun@xxxxxxxxxxxx>
Date: Tue, 26 Mar 2002 21:43:08 +0100
When trying to compile keepalived-0.5.3 without _DEBUG_, I discovered a
minor bug in main.c. A patch to correct this is attached below.

I think the distibuted version should compile without debug-info by 
default, or maybe it would be nice to be able to change between 
debug/no-debug from the config-file.

Anyway, many thanks to Alexandre for a great product :)


=> Patch:

--- keepalived-0.5.3/main.c     Sun Feb 24 22:38:17 2002
+++ keepalived-0.5.3_no_debug/main.c    Tue Mar 26 21:12:55 2002
@@ -228,7 +228,9 @@
     syslog(LOG_INFO, "Stopping "VERSION_STRING);
     closelog();
     thread_destroy_master(master);
-    keepalived_free_final();
+    #ifdef _DEBUG_
+      keepalived_free_final();
+    #endif
     exit(0);
   }
@@ -236,7 +238,10 @@
   if (!init_ssl_ctx()) {
     closelog();
     thread_destroy_master(master);
-    keepalived_free_final();
+    #ifdef _DEBUG_
+      keepalived_free_final();
+    #endif
+
     exit(0);
   }



-- 
Magnus Nordseth



<Prev in Thread] Current Thread [Next in Thread>