[Yum-devel] [PATCH/RFC] Don't exit immediately on lock held

James Antill jantill at redhat.com
Thu Jul 26 15:52:36 UTC 2007


On Thu, 2007-07-26 at 10:41 -0400, Jeremy Katz wrote:
> Per a suggestion on fedora-devel-list from Hans de Goede, the following
> makes it so that we don't immediately exit on the command line if the
> lock is held by another process.  Instead, we spin checking every two
> seconds to see if the lock has been released.  This helps in the case
> where, eg, yum-updatesd is downloading metadata so that you don't have
> to guess when it's done.  And if you don't want to wait, ctrl-c exits
> immediately.
> 
> Other opinions/thoughts?

 One of the places I'd often like something like this is what I want to
install something but have just ask yum to install something else, or do
an update. So from that point of view I don't think 2 seconds is a good
number, esp. given the message being printed out all the time.
 Power of 2 backoff upto a limit seems pretty easy to do. Updated patch
attached.

-- 
James Antill <jantill at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-lock-spin.patch
Type: text/x-patch
Size: 1718 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070726/d3d017d2/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070726/d3d017d2/attachment.pgp 


More information about the Yum-devel mailing list