Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: cygwin AT cygwin DOT com To: Richard Anderson cc: cygwin AT cygwin DOT com Subject: Re: Cygwin prevents normal Windows shutdown In-Reply-To: <002c01c35007$323149f0$321d10ac@RAnderson> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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/