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

Brian C. Lane bcl at redhat.com
Tue Oct 15 20:58:27 UTC 2013


On Tue, Oct 15, 2013 at 12:56:02PM +0200, Vratislav Podzimek wrote:
> 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 really like this, have you done some error simulating to test it,
especially with tui mode where we were having problems with the error
handler working right?

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20131015/d3708d76/attachment.sig>


More information about the anaconda-patches mailing list