Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Authentication-Warning: localhost.localdomain: ronald owned process doing -bs
Date: Tue, 6 May 2003 10:48:38 +0200 (CEST)
From: Ronald Landheer-Cieslak <ronald@landheer.com>
X-X-Sender: ronald@localhost.localdomain
To: cygwin@cygwin.com
Subject: Re: Portable Cygwin on a CD
In-Reply-To: <rtpdbvo73bvfnmqph8as57t6bi20fl5ikg@4ax.com>
Message-ID: <Pine.LNX.4.44.0305060925450.8957-100000@localhost.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Mon, 5 May 2003, Sam Edge wrote:
> Ronald Landheer-Cieslak <ronald@landheer.com> wrote in
> <Pine.LNX.4.44.0305051634590.843-100000@localhost.localdomain>
> in gmane.os.cygwin on Mon, 5 May 2003 17:01:16 +0200 (CEST):
> > I think it would be a very good idea to remove the mount table once you're 
> > done (and perhaps put the old one back if there was one). If the autorun 
> > program runs the bash or rxvt, it should be easy enough to clean up once 
> > it's done..
> I thought about this. The "autorun.exe" program could wait for the
> rxvt.exe to terminate and then unmount everything.
That's more or less what I was thinking..

> But what if you'd started up some detached Cygwin processes from
> within the session? Unmounting everything might make them choke.
but I hadn't thought about that..
 
> Autorun.exe could get /really/ clever hooking into Windows and sit in
> the taskbar until it spots when the last instance of cygwin1.dll is
> unloaded before unmounting everything, unlocking the CD-ROM eject
> mechanism and exiting. I'm not going to write it for you, though. ;-)
That, I can understand, but I might take a jab at it :)

I don't have the slightest clue on how to lock a CD-ROM drive, though.. 
but the code for looking whether Cygwin is running can be found in Cygwin 
itself, so that's mostly a matter of copying & pasting :)

rlc



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

