[Yum] Why is yum not interruptible with SIGTERM/ctrl-c?
Michael Stenner
mstenner at ece.arizona.edu
Thu May 4 15:42:31 UTC 2006
On Thu, May 04, 2006 at 11:20:41AM -0400, seth vidal wrote:
> On Thu, 2006-05-04 at 12:04 -0300, Juergen Botz wrote:
> > Maybe this is a stupid question... and to be honest I have not
> > looked at the code. But there have been many times that I
> > really needed to terminate a running yum, and right now I have
> > to use SIGKILL and then I usually need do a 'clean metadata'.
> > At best this seems to be bad UI... users need a way to cleanly
> > stop any process on the system.
>
> in the majority of the situation it is due to rpm grabbing those signals
> so that a user will not cancel a process in the middle of its database
> being written to which could leave the system in a bad state.
I recall that some folks (a little myself, but mostly Menno, I think)
put a bunch of time into this problem and came up with some clever
solutions. I think the plan was that during a download, one ctrl-c
would skip to the next mirror and two would bail out of yum. Did that
code ever make it in?
-Michael
--
Michael D. Stenner mstenner at ece.arizona.edu
ECE Department and Optical Sciences Center 520-626-1619
University of Arizona ECE 524G
More information about the Yum
mailing list