summaryrefslogtreecommitdiffstats
path: root/src/service-dbus
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2013-10-30 12:16:14 +0100
committerTomas Bzatek <tbzatek@redhat.com>2013-10-30 13:30:55 +0100
commit793843369a4445f8602ef176b41c828730cb4404 (patch)
tree3cf841b48f3cc7394a17414a710cffe07036ae68 /src/service-dbus
parentfd999feb7387941a1af16c777a5d83b50d79bad1 (diff)
downloadopenlmi-providers-793843369a4445f8602ef176b41c828730cb4404.tar.gz
openlmi-providers-793843369a4445f8602ef176b41c828730cb4404.tar.xz
openlmi-providers-793843369a4445f8602ef176b41c828730cb4404.zip
indmanager: Use proper mutex error checking
Things are bit harsh in the indication manager when it comes to cancellation. At certain situation we force-cancel the polling thread, having no chance for cleanup. The mutex we use to protect memory shared between threads may be left in undefined state. The pthread_mutex_unlock() call in im_stop_ind() may be called on already unlocked mutex which, in default setup, causes a segfault. Setting a mutex attribute PTHREAD_MUTEX_ERRORCHECK will prevent this, returning proper error.
Diffstat (limited to 'src/service-dbus')
0 files changed, 0 insertions, 0 deletions