JackClient: Lock before killing client notification thread#889
JackClient: Lock before killing client notification thread#889DeviLaxmii wants to merge 1 commit intojackaudio:developfrom
Conversation
|
Hello, I was able to reproduce the issue mentioned in : #395 Kindly consider the patch which resolves the issue. |
The client notification thread locks a mutex before reading/writing from/to the socket. If the thread is killed while the lock is taken it would leave the mutex dangling. To avoid this take the mutex and then kill the client notification thread. Signed-off-by: Laxmi Devi <[email protected]>
8032ee2 to
e933e28
Compare
|
This commit did not make it to Jack 1.9.22 despite it looks really simple. |
|
thread sync always looks simple but never really is. |
|
Thanks for your immediate response. I fully understand. Good luck for fixing such stuff. |
|
Just to confirm, I have checked the issue again with 1.9.22. The locking still happens with Jack 1.9.22. |
The client notification thread locks a mutex before reading/writing
from/to the socket. If the thread is killed while the lock is taken it
would leave the mutex dangling.
To avoid this take the mutex and then kill the client notification thread.
Signed-off-by: Laxmi Devi [email protected]