* Forcefully eject CD-ROM
@ 2001-01-29 18:26 Paul Powell
0 siblings, 0 replies; only message in thread
From: Paul Powell @ 2001-01-29 18:26 UTC (permalink / raw)
To: linux-kernel
Hello,
I am trying to eject my bootable CD-ROM after the user
is finished using it. The problem is that something
has locked the CD-ROM and every command I send fails
with a "resource busy" error.
I use a custom init program to mount and chroot to the
CD. I then start X-windows and my application. When
the application quits I send SIGTERM signals to
X-windows and the other processes I spawned for them
to shutdown as well. I then try to unmount and eject
the CD but I am not able to do so.
If I don't start the GUI then I can umount and eject
the CD with no problems. Nothing is different except
I didn't fork the X process. But if I start the GUI
and then kill the GUI I can't unmount and eject the
CD. It's as if X-windows is still using the CD even
though I killed it with the SEGTERM signal.
Is there a way to tell the CD to unmount and eject
regardless of what Linux thinks is the 'proper' thing
to do? Am I killing the GUI wrong?
Thanks
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-01-29 18:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-29 18:26 Forcefully eject CD-ROM Paul Powell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®