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: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 11 Feb 2004 13:21:45 -0500 (EST)
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Anders =?ISO-8859-1?Q?Nystr=F6m?= <anders.nystrom@aktia.fi>
cc: cygwin@cygwin.com
Subject: Re: cygwin rebooting computer
In-Reply-To: <fc.000f769f00f5b7e2000f769f00f5b7e2.f5b7ee@aktia.fi>
Message-ID: <Pine.GSO.4.56.0402111315580.11287@slinky.cs.nyu.edu>
References: <fc.000f769f00f5b7e2000f769f00f5b7e2.f5b7ee@aktia.fi>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT
X-Scanned-By: MIMEDefang 2.39

On Wed, 11 Feb 2004, Anders Nyström wrote:

> I am a big fan of cygwin and has just learned the TAB completion thing.
>
> Now, my harddisk is partitioned in 2 so sometimes (not always)
> when doing cd /cygdrive/d TAB, teh computer goes black = softboot = reset
>
> Am I doing anything wrong or what
> rgds Anders Nystrom

Anders,

Cygwin by itself (i.e., without explicitly making the appropriate Windows
calls, as "shutdown" does) should not be able to reboot your machine.  I'd
suspect a faulty driver of some sort.  Does this problem happen on "ls
/cygdrive" as well?

My guess is you should be able to reproduce this problem from a pure
Windows program, by making the same call sequence as the one in
fhandler_cygdrive::set_drives() in src/winsup/cygwin/fhandler_disk_file.cc
(even just calling GetLogicalDriveStrings() might do it).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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/

