File 18000-3017845-bnc625780-Disable-indications-on-shutdown.patch of Package sblim-sfcb-sle11-sp1

From 8c37ba4bf6533b5ff683ebf97d5a8542a988fc3b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Tue, 27 Jul 2010 09:53:03 +0200
Subject: [PATCH] [ 3017845 ] Disable indications on shutdown

---
 providerDrv.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/providerDrv.c b/providerDrv.c
index 6e32a9a..09396d5 100644
--- a/providerDrv.c
+++ b/providerDrv.c
@@ -269,13 +269,16 @@ static void stopProc(void *p)
    ctx = native_new_CMPIContext(MEM_NOT_TRACKED,NULL);
 //   for (pInfo=curProvProc->firstProv; pInfo; pInfo=pInfo->next) {
    for (pInfo=activProvs; pInfo; pInfo=pInfo->next) {
-   for (temp=activProvs;temp;temp=temp->next) {
+    for (temp=activProvs;temp;temp=temp->next) {
       if((strcmp(temp->providerName,pInfo->providerName)==0) && (strcmp(temp->className,pInfo->className)!=0)) break;
       if (pInfo->classMI) pInfo->classMI->ft->cleanup(pInfo->classMI, ctx);
       if (pInfo->instanceMI) pInfo->instanceMI->ft->cleanup(pInfo->instanceMI, ctx, 1);
       if (pInfo->associationMI) pInfo->associationMI->ft->cleanup(pInfo->associationMI, ctx, 1);
       if (pInfo->methodMI) pInfo->methodMI->ft->cleanup(pInfo->methodMI, ctx, 1);
-      if (pInfo->indicationMI) pInfo->indicationMI->ft->cleanup(pInfo->indicationMI, ctx, 1);
+      if (pInfo->indicationMI) {
+	pInfo->indicationMI->ft->disableIndications(pInfo->indicationMI, ctx);
+	pInfo->indicationMI->ft->cleanup(pInfo->indicationMI, ctx, 1);
+      }
       //dlclose(pInfo->library);
     }
    }
-- 
1.7.1

openSUSE Build Service is sponsored by