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 Message-ID: <001201c35168$739b92d0$19c3fea9@RAnderson> From: "Richard Anderson" To: Cc: References: Subject: Re: Cygwin prevents normal Windows shutdown Date: Wed, 23 Jul 2003 15:19:12 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 ----- Original Message ----- From: "Igor Pechtchanski" To: "Richard Anderson" Cc: Sent: Wednesday, July 23, 2003 2:34 PM Subject: Re: Cygwin prevents normal Windows shutdown > 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 Igor, Windows XP and 2K are derived the same code base (or at least more so than 2K and 98), so most systems calls should behave the same. The bash window closes normally when I click the Close button. All third-party Windows apps I have used except Cygwin show the normal behavior on Windows - they gracefully exit without invoking the End Process pop-up. So it's likely that Cygwin is not following the Windows API standard for catching and handling this interrupt. Richard Anderson richard AT richard-anderson DOT org Richard DOT Anderson AT raycosoft DOT com www.richard-anderson.org www.raycosoft.com -- 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/