Skip to content

Commit

Permalink
[ 3022934 ] SLP code calls setupControl more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
buccella committed Jun 29, 2010
1 parent 2800ba8 commit 417d1c1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Expand Up @@ -6,6 +6,9 @@
* cimslp.c, cimslpSLP.c:
[ 3022941 ] Remove HAVE_SLP_ALONE sections

* profileProvider.c, cimslpCMPI.c:
[ 3022934 ] SLP code calls setupControl more than once

2010-06-17 Chris Buccella <buccella@linux.vnet.ibm.com>

* providerDrv.c:
Expand Down
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -10,6 +10,7 @@ Bugs fixed:
- 2950521 Provider operations are wrongly traced
- 3016863 Data corruption when replacing array properties
- 3022941 Remove HAVE_SLP_ALONE sections
- 3022934 SLP code calls setupControl more than once

Changes in 1.3.8
================
Expand Down
2 changes: 0 additions & 2 deletions cimslpCMPI.c
Expand Up @@ -275,7 +275,6 @@ getSLPData(cimomConfig cfg, const CMPIBroker *_broker,
int err;

err = 1;
setupControl(configfile);
if (getControlChars("slpHostnamelib", &ln) == 0) {
libraryName(NULL, ln, dlName, 512);
if ((hostnameLib = dlopen(dlName, RTLD_LAZY))) {
Expand All @@ -284,7 +283,6 @@ getSLPData(cimomConfig cfg, const CMPIBroker *_broker,
err = 0;
}
}
sunsetControl();
if (err)
mlogf(M_ERROR, M_SHOW,
"--- SLP Hostname exit %s not found. Defaulting to system hostname.\n",
Expand Down
2 changes: 1 addition & 1 deletion profileProvider.c
Expand Up @@ -328,7 +328,6 @@ updateSLPReg(const CMPIContext *ctx, int slpLifeTime)
_SFCB_ENTER(TRACE_SLP, "updateSLPReg");

pthread_mutex_lock(&slpUpdateMtx);
setupControl(configfile);

getControlBool("enableSlp", &enableSlp);
if(!enableSlp) {
Expand Down Expand Up @@ -440,6 +439,7 @@ slpUpdate(void *args)
timeLeft, slp_shutting_down ? "true" : "false"));
}
//End loop
sunsetControl();
if(http_url) {
_SFCB_TRACE(2, ("--- Deregistering http advertisement"));
deregisterCIMService(http_url);
Expand Down

0 comments on commit 417d1c1

Please sign in to comment.