delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/23/17:35:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 23 Jul 2003 17:34:32 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Richard Anderson <richard AT richard-anderson DOT org>
cc: cygwin AT cygwin DOT com
Subject: Re: Cygwin prevents normal Windows shutdown
In-Reply-To: <002c01c35007$323149f0$321d10ac@RAnderson>
Message-ID: <Pine.GSO.4.44.0307231721150.26427-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Mon, 21 Jul 2003, Richard Anderson wrote:

> When I start Cygwin 1.3.22-1 with the installed shortcut (which points to
> C:\cygwin\cygwin.bat) and then try to shut down Windows XP using the normal
> Start / Turn Off Computer procedure, Windows pops up the "End Program -
> Cygwin ... Windows cannot end this program" dialog box.  The cygwin ps
> command shows only a bash shell running.
>
> Is there some way to prevent this behavior?
> Richard Anderson

Richard,

Apparently, bash doesn't react to the shutdown message that Windows XP
sends it.  I've observed similar behavior with Windows 9x.  Can you close
the bash window via the 'X' ("Close") button?  If not, then it's possible
that the correct WM_CLOSE message simply isn't passed to or handled by the
bash shell (and any other console Cygwin process).  On Windows NT/2k,
using the 'X' button sends a HUP signal to the shell.  This doesn't seem
to happen on Windows 9x (and, possibly, Windows XP -- I don't have an XP
system to test this on).  You could try to incite someone knowledgeable in
Windows messaging (not me, sorry) to investigate this further.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019