[PATCH 4/4] DNFPayload: log when the transaction process unexpectedly terminates.

Ales Kozumplik akozumpl at redhat.com
Thu Sep 12 09:08:13 UTC 2013


On 09/11/2013 04:34 PM, Chris Lumens wrote:
> Can you be any more fine-grained on the exception catching here?

Yes but that would defeat the purpose of having it as broad as possible.

If there's an exception (even SystemExit or KeyboardInterrupt) in 
do_transaction() and we don't catch it right here the process 
terminates. But multiprocessing doesn't do anything special in that case 
(not even log the event) and in our case, the queue on the receiving end 
just waits forever. So all exceptions must be caught and logged and the 
final token transmitted.

Ales


More information about the anaconda-patches mailing list