1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-25 21:57:45 +03:00
Tony Asleson e3965d392c lvmdbusd: Fix hang in MThreadRunner
When executing in the main thread, if we encounter an exception we
will bypass the notify_all call on the condition and the calling thread
never wakes up.

@staticmethod
    def runner(obj):
        # noinspection PyProtectedMember
Exception thrown here
 ----> obj._run()
So the following code doesn't run, which causes calling thread to hang
	with obj.cond:
            obj.function_complete = True
            obj.cond.notify_all()

Additionally for some unknown reason the stderr is lost.
Best guess is it's something to do with scheduling a python function
into the GLib.idle_add.  That made finding issue quite difficult.
2017-09-21 14:35:36 -05:00
..
2016-02-18 13:26:08 +00:00
2016-12-10 17:59:07 +00:00
2016-11-30 15:59:06 -06:00
2016-02-17 23:53:35 +00:00
2017-02-01 15:38:55 -06:00
2016-08-29 15:26:56 -05:00
2017-04-27 18:16:17 +02:00
2017-05-05 10:30:06 -05:00
2016-02-17 23:53:35 +00:00
2017-02-01 16:51:00 -06:00
2016-12-20 11:06:57 -06:00
2016-02-17 23:53:35 +00:00
2017-09-21 14:35:36 -05:00
2017-02-01 16:37:03 -06:00