[Fedora-livecd-list] livecd-creator won't cleanup on CTRL-C rpmUtils/miscutils.py catches it and exits.

Bruno Wolff III bruno at wolff.to
Sun Aug 1 18:16:10 UTC 2010


On Sun, Aug 01, 2010 at 10:14:05 -0700,
  Jasper Hartline <jasper.hartline at gmail.com> wrote:
> Just wondering if anyone has any information on this?
> The reason I ask is because in miscutils.py all signals which are caught
> will sys.exit() and this seems to me to be a problem.
> 
> I've actually implemented a signal handler before the signal handler
> is initialized
> when we get to the package payload, but I'm not sure this is the best
> way to handle cases for livecd-creator.

It looks like it is possible to trap the sys.exit. So it should be possible
to protect the yum install part with try and except and then let
livecd-creator do its normal cleanup.


More information about the livecd mailing list