[master/f20-branch][PATCH] Handle packaging exits in a better way

Chris Lumens clumens at redhat.com
Tue Oct 15 18:00:03 UTC 2013


> For various reasons we shouldn't call sys.exit() from a non-main thread. But
> since we need some packaging threads to stop right in the middle and deep in the
> stack, the only way that works the same as sys.exit() is raising an exception.
> A special exception that is caught and "translated" into a sys.exit() call from
> the main thread.
> 
> This way, packaging doesn't need to have a clue about our queues and exit
> handling.

I like this approach - and especially the bit about getting rid of all
those sleep loops.  Will we ever care about why the payload cannot
continue?

- Chris


More information about the anaconda-patches mailing list