summaryrefslogtreecommitdiffstats
path: root/src/indmanager
Commit message (Collapse)AuthorAgeFilesLines
* indmanager: Use proper mutex error checkingTomas Bzatek2013-10-301-2/+6
| | | | | | | | | | | 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.
* indmanager: Use CMTraceMessage() instead of CMLogMessage()Tomas Bzatek2013-08-211-1/+1
| | | | | | | | | | As per https://fedorahosted.org/openlmi/wiki/CodingConventions any debugging message that shouldn't go to user should be using CMTraceMessage(). Doing this change to minimize output to syslog, making journald indications nearly impossible to debug due to constant logging, generating more and more indications, resulting in endless loop.
* indmanager: Force thread cancellation on im_stop_ind()Tomas Bzatek2013-08-212-17/+50
| | | | | This fixes thread leak due to im_stop_ind() not cleaning up running thread. This change also brings some guarantees, see README for details.
* indmanager: Get object path from instances to be sent when not pollingTomas Bzatek2013-08-151-1/+1
| | | | | | When not polling, manager->enums is NULL resulting in segfault. This patch adds extra test and retrieves the object path required from instances to be sent.
* indmanager: Pass IMManager* instance in the IMInstGather callbackTomas Bzatek2013-08-152-6/+9
| | | | | Manual instance creation in the gather callback sometimes requires access to the CMPIBroker instance, stored in the indication manager struct.
* indmanager: Protect ind_manager.h from multiple inclusionTomas Bzatek2013-08-151-0/+5
|
* indmanager: Fix IMEventWatcher arguments to be able to actually set dataTomas Bzatek2013-08-153-3/+3
|
* Indmanager: Fix coverity reportRoman Rakus2013-07-171-0/+3
| | | | Signed-off-by: Roman Rakus <rrakus@redhat.com>
* Indication manager: Do first poll for newly added filtersRoman Rakus2013-07-011-0/+31
| | | | | | | When some filter is added there was missing very first poll leading in loosing of first indication. Signed-off-by: Roman Rakus <rrakus@redhat.com>
* constify CMPIBroker in ind_managerRadek Novacek2013-06-172-5/+7
|
* IMEventWatcher SHOULD be blockingRoman Rakus2013-05-271-1/+1
| | | | Signed-off-by: Roman Rakus <rrakus@redhat.com>
* Indication managerRoman Rakus2013-05-275-0/+1454
Signed-off-by: Roman Rakus <rrakus@redhat.com>