mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Powell <moloch16@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Forcefully eject CD-ROM
Date: Mon, 29 Jan 2001 10:26:51 -0800 (PST)	[thread overview]
Message-ID: <20010129182651.20462.qmail@web121.yahoomail.com> (raw)

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/

                 reply	other threads:[~2001-01-29 18:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010129182651.20462.qmail@web121.yahoomail.com \
    --to=moloch16@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®