]> sourceware.org Git - lvm2.git/commit
lvmdbusd: Fix hang for Job.Wait(n)
authorTony Asleson <tasleson@redhat.com>
Wed, 27 Jul 2016 23:27:58 +0000 (18:27 -0500)
committerTony Asleson <tasleson@redhat.com>
Thu, 28 Jul 2016 16:13:29 +0000 (11:13 -0500)
commit20b21f4fd85532bd63a699aac4fc34f5786cf96d
tree412d0520afe3a388b797d45a7afe41677264e25f
parent8d959b6c75a6cc98691413ec4eab5b01e992d6c1
lvmdbusd: Fix hang for Job.Wait(n)

When a client is doing a wait on a job, any other clients will hang
when trying to do anything with the service.  This is caused by
the wait code which  was placing the thread that handles
incoming dbus requests to sleep until either the timeout expired or
the job operation completed.

This change creates a thread for the wait request, so that the thread
processing incoming requests can continue to run.
daemons/lvmdbusd/background.py
daemons/lvmdbusd/job.py
This page took 0.034544 seconds and 5 git commands to generate.