diff options
| author | Jan Safranek <jsafrane@redhat.com> | 2013-11-26 09:14:57 +0100 |
|---|---|---|
| committer | Jan Safranek <jsafrane@redhat.com> | 2013-11-26 13:03:59 +0100 |
| commit | 381f4038a6a32a82693ebe6dce83f5b03d68521b (patch) | |
| tree | f9339057c4bbf3dd1c7f1ea6fd831ec6509b7e4f /src/python | |
| parent | 4d87f52f06a080cdcd573e6061ddacbdcc908abc (diff) | |
indicationmgr: fixed deadlock when re-starting the namager thread.
When the indication manager thread was stopped, it destroys its mutex and
creates new one. If pthread_mutex_destroy() fails because the mutex is
locked, the new mutex is not created -> the old one is used, but it's already
locked -> deadlock.
So let's make sure the thread does not hold the mutex when destroying the thread.
Rewrite of indication manager thread is needed to have the manage() function
interruptible when waiting for events, e.g. using a pipe and select(),
this pthread_cancel leads to memory leaks.
Diffstat (limited to 'src/python')
0 files changed, 0 insertions, 0 deletions
