[icinga-checkins] icinga.org: icinga-core/mfriedrich/ocilib: exit on not supported libdbi Oracle

git at icinga.org git at icinga.org
Mon Oct 19 02:08:55 CEST 2009


Module: icinga-core
Branch: mfriedrich/ocilib
Commit: 72e5974e45978e4568e19381f2b3911323514453
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=72e5974e45978e4568e19381f2b3911323514453

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Fri Oct 16 12:41:52 2009 +0200

exit on not supported libdbi Oracle

---

 module/idoutils/src/ido2db.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/module/idoutils/src/ido2db.c b/module/idoutils/src/ido2db.c
index 62d1101..1a48b15 100644
--- a/module/idoutils/src/ido2db.c
+++ b/module/idoutils/src/ido2db.c
@@ -212,6 +212,11 @@ int main(int argc, char **argv){
 		exit(1);
 		}
 
+	/* 2009-10-16 Michael Friedrich: libdbi Oracle driver is not yet working, remains broken */
+	if(ndo2db_db_settings.server_type==NDO2DB_DBSERVER_ORACLE) {
+		printf("Support for libdbi Oracle driver is not yet working.\n");
+		exit(1);
+	}
 #else /* Oracle ocilib specific */
 
 	ndo2db_log_debug_info(NDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db with ocilib() driver check\n");
@@ -844,10 +849,12 @@ void ndo2db_parent_sighandler(int sig){
 	case SIGTERM:
 	case SIGINT:
 		/* forward signal to all members of this group of processes */
+		ndo2db_log_debug_info(NDO2DB_DEBUGL_PROCESSINFO, 2, "forward signal to all members of this group of processes");
 		kill(0, sig);
 		break;
 	case SIGCHLD:
 		/* cleanup children that exit, so we don't have zombies */
+		ndo2db_log_debug_info(NDO2DB_DEBUGL_PROCESSINFO, 2, "cleanup children that exit, so we don't have zombies");
 		while(waitpid(-1,NULL,WNOHANG)>0);
 		return;
 





More information about the icinga-checkins mailing list