Bug 241278 - kill yum should kill yum
Summary: kill yum should kill yum
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: James Antill
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-05-24 19:15 UTC by Need Real Name
Modified: 2014-01-21 22:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-07-24 20:39:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Make yum listen to signals (1.84 KB, patch)
2007-07-20 11:27 UTC, Panu Matilainen
no flags Details | Diff

Description Need Real Name 2007-05-24 19:15:01 UTC
I know this has been discussed lots before, but the discussions before centered
on interactive yum use.

[root@box ~]# yum install rdesktop
Loading "presto" plugin
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "protectbase" plugin
Setting up Presto
Reading Presto metadata in from local files
Loading mirror speeds from cached hostfile
Existing lock /var/run/yum.pid: another copy is running as pid 2763. Aborting.
[root@box ~]# kill 2763
[root@box ~]# yum install rdesktop
Loading "presto" plugin
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "protectbase" plugin
Setting up Presto
Reading Presto metadata in from local files
Loading mirror speeds from cached hostfile
Existing lock /var/run/yum.pid: another copy is running as pid 2763. Aborting.

Sending a kill command to a program should make the program quit.

Comment 1 Seth Vidal 2007-06-20 15:37:14 UTC
not if the program (or in this case a library the program is using) has grabbed
the sigterm signal handler and refuses to obey it. You have to kill -9 it b/c of
the grab by rpm of the signal handler.

to be fair - in certain situations this is desired behavior. During the
transaction, for example, I think it would be wise to make the user REALLY want
to stop the yum process by using a kill -9 b/c during various portions of the
transaction stopping the process can leave you with an unstable or completely
broken system.

Comment 2 Panu Matilainen 2007-07-20 11:27:08 UTC
Created attachment 159642 [details]
Make yum listen to signals

Attached patch, together with rpm-4.4.2.1-0.5.rc3 (in next rawhide push) makes
yum check for signals caught by rpm during downloads if the rpm version
supports it. There might be other places where the checking is needed but this
takes care of the worst part.

Comment 3 Seth Vidal 2007-07-24 20:39:10 UTC
applied the patch to cvs. Should be out in next release


Note You need to log in before you can comment on or make changes to this bug.