Fixed a hang when PackageKit responded too fast (bnc#561578). webyast-1.0
authorMartin Vidner <mvidner@suse.cz>
Tue, 8 Dec 2009 17:18:40 +0000 (18:18 +0100)
committerMartin Vidner <mvidner@suse.cz>
Tue, 8 Dec 2009 17:25:50 +0000 (18:25 +0100)
commiteb8ae0db1f92fb9ece09f2f57191d6d500750eef
treefffe8363b5342cbfecec7b7ba3cca07ae4fa4846
parent4ab3fbcea1b5aaf42edfdf7a26a1c94fa1d218a0
Fixed a hang when PackageKit responded too fast (bnc#561578).

All signal handlers need to be in place before the call is made
otherwise the signal will be emitted together with the reply
(and ignored).

A test case is not possible with the current
test/packagekit_stub.rb,
because it cannot work before run is called.
But the bug strikes only when Finished arrives before run is called,
even earlier, before the handler is installed.
plugins/patches/app/models/resolvable.rb
plugins/patches/package/yast2-webservice-patches.changes
plugins/patches/package/yast2-webservice-patches.spec