-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JackClient: Lock before killing client notification thread #889
base: develop
Are you sure you want to change the base?
JackClient: Lock before killing client notification thread #889
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]