Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 116604 - /var/run/yum.pid stays after interupting yum
/var/run/yum.pid stays after interupting yum
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2004-02-23 13:33 EST by Petri T. Koistinen
Modified: 2014-01-21 17:49 EST (History)
0 users

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

Attachments (Terms of Use)

  None (edit)
Description Petri T. Koistinen 2004-02-23 13:33:28 EST
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 ?
  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):

How reproducible:

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 13:35:08 EST
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 13:37:34 EST
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.