This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "sfcb - Small Footprint CIM Broker".
The branch, master has been updated
via 838013f2bffc67de3fa2ffd8cae891c14c5c1f76 (commit)
from d152551df1341473e576da41012951642cab47c8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 838013f2bffc67de3fa2ffd8cae891c14c5c1f76
Author: Dave Heller <hel...@us...>
Date: Tue Dec 17 00:58:42 2013 -0500
[sfcb-tix:#93] ProfileProvider segfault while stopping slpUpdate thread
-----------------------------------------------------------------------
Summary of changes:
profileProvider.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/profileProvider.c b/profileProvider.c
index c2e1e87..433dcda 100644
--- a/profileProvider.c
+++ b/profileProvider.c
@@ -211,12 +211,14 @@ CMPIStatus ProfileProviderMethodCleanup(CMPIMethodMI * mi,
CMPIStatus st = { CMPI_RC_OK, NULL };
_SFCB_ENTER(TRACE_INDPROVIDER, "ProfileProviderCleanup");
#ifdef HAVE_SLP
- // Tell SLP update thread that we're shutting down
- _SFCB_TRACE(1, ("--- Stopping SLP thread"));
- pthread_kill(slpUpdateThread, SIGUSR2);
- // Wait for thread to complete
- pthread_join(slpUpdateThread, NULL);
- _SFCB_TRACE(1, ("--- SLP Thread stopped"));
+ if (slpUpdateThread) {
+ // Tell SLP update thread that we're shutting down
+ _SFCB_TRACE(1, ("--- Stopping SLP thread"));
+ pthread_kill(slpUpdateThread, SIGUSR2);
+ // Wait for thread to complete
+ pthread_join(slpUpdateThread, NULL);
+ _SFCB_TRACE(1, ("--- SLP Thread stopped"));
+ }
#endif // HAVE_SLP
_SFCB_RETURN(st);
}
hooks/post-receive
--
sfcb - Small Footprint CIM Broker
|