Bug 116604 - /var/run/yum.pid stays after interupting yum
Summary: /var/run/yum.pid stays after interupting yum
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
(Show other bugs)
Version: rawhide
Hardware: All Linux
medium
low
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-02-23 18:33 UTC by Petri T. Koistinen
Modified: 2014-01-21 22:49 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-02-23 18:35:08 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Petri T. Koistinen 2004-02-23 18:33:28 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Gecko/20040122 Debian/1.6-1

Description of problem:
Use case: "Hey, let's install vi and vim."
Ok type: "yum install vim-minimal vim-enhanced"
No, it will ask are you sure thing later, let's just hit
CTRL-C and type "yum -y install vim-minimal vim-enhanced".
Hmm, what a heck, it doesn't work:

Traceback (most recent call last):
  File "/usr/bin/yum", line 30, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum/yummain.py", line 169, in main
    lock('/var/run/yum.pid', mypid)
  File "/usr/share/yum/yummain.py", line 121, in lock
    while not yumlock.lock(lockfile, mypid, 0644):
  File "/usr/share/yum/yumlock.py", line 10, in lock
    if not msg.strerror == "File exists": raise msg
OSError: [Errno 17] Tiedosto on olemassa: '/var/run/yum.pid'

Ok, need to remove /var/run/yum.pid file.

Why doesn't yum remove /var/run/yum.pid file when it dies?



Version-Release number of selected component (if applicable):
yum-2.0.4.20040103-2

How reproducible:
Always

Steps to Reproduce:
1. yum something
2. ctrl-c
3. yum again something
4. remove stale /var/run/yum.pid file
5. yum again
    

Actual Results:  Losing another valuable 5 seconds of your "life".

Expected Results:  Perfect user experience.


Additional info:

Comment 1 Seth Vidal 2004-02-23 18:35:08 UTC
1. your expected results are pretty funny
2. this has been fixed in the latest yum daily release -I'll try to
encourage this to show up in rawhide.

closing this as fixed, upstream.

Comment 2 Petri T. Koistinen 2004-02-23 18:37:34 UTC
Wow! It took only took 5 seconds to close this. ;-) That's perfect
user experience.



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