[PATCH] livemedia-creator: Add --timeout option to cancel install after X minutes

Brian C. Lane bcl at redhat.com
Mon Feb 2 22:49:51 UTC 2015


On Mon, Feb 02, 2015 at 04:48:09PM -0500, Colin Walters wrote:
> On Mon, Feb 2, 2015, at 03:45 PM, Brian C. Lane wrote:
> >\
> > +            taking_too_long = time.time() > self._start_time + (self._timeout * 60)
> 
> On laptops that suspend, you really don't want to use the realtime ("wall")
> clock for this - if I start a build, suspend and take the train, then unsuspend, it shouldn't fail
> the build for taking too long.
> 
> AFAIK Python 2 doesn't have built in bindings to CLOCK_MONOTONIC, but
> GLib does have it bound via GLib.get_monotonic_time()

Thanks, but I don't expect this to be an actual problem. Just don't run
it with --timeout.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list