Bug 69517 - kio_audiocd keeps cdrom device open
Summary: kio_audiocd keeps cdrom device open
Status: RESOLVED WORKSFORME
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: audiocd (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Scott Wheeler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-02 19:10 UTC by rjb
Modified: 2004-04-22 18:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rjb 2003-12-02 19:10:39 UTC
Version:            (using KDE KDE 3.1.93)
Installed from:    Compiled From Sources
OS:          Linux

In KDE 3.1.93 ejecting a CDROM causes an error message
to appear (it does eject though):
> Eject /dev/sr0 failed!
and
> Couldn't find the program 'kdeeject %v'

It appears that the eject program thinks it failed. After adding
some debugging statements in the source of eject I found the ioctl()s
return -EBUSY. An fuser on /dev/sr0 shows kio_audiocd keeping
the device open, even after unmounting and ejecting. Strace confirms that.

I think this is a bug introduced in 3.2beta1. I did not see this
happening in 3.1.4.
Comment 1 icefox 2004-03-22 00:29:18 UTC
Still occurring for you in 3.2.1 or HEAD?
Comment 2 rjb 2004-03-24 17:25:21 UTC
In 3.2.1 it still occurs. However I just found out that this only happens
when I'm logged in as root. Regular users don't get the error message.
I can easily live with that, so if it's okay I'll mark this bug as RESOLVED.
Comment 3 rjb 2004-04-22 18:56:47 UTC
See previous comment. The workaround is to login as a regular user
(not root).