Red Hat Bugzilla – Bug 462784
checkSignals uses exit instead of sys.exit, thus. causing a traceback
Last modified: 2009-01-20 16:44:22 EST
Description of problem:
Because of the way rpm eats C-c/SIGINT we have a checkSignals call in yum, which will exit if rpm tells us that a SIGINT occured. This bug means instead of exiting we'll traceback.
However this is even more important in 5.3 because with:
...then we get a traceback if the user interupts a download with RHN, due to how RHN doesn't work the same as non RHN.
The patch is literally:
diff --git a/rpmUtils/miscutils.py b/rpmUtils/miscutils.py
index 64e232e..e9fb3e5 100644
@@ -413,5 +413,5 @@ def checkSignals():
...and changes C-c from producing ~50 lines of traceback vs. just exiting.
Another change needs to be done to rhn-plugin to produce a nice message as normal yum does, but that's a minor thing.
Note that 5.2 rpm eats the C-c completely, so you need the latest rpm to test (and stopping with a traceback is better than not stopping, so it's not a regression as such).
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
Ok, I realized I was testing with an old version of python ... with the latest python yum-rhn-plugin and yum works fine with downloads and C-c.
So the above is a real edge case again.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.