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
|