Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <8F23E55D511AD5119A6800D0B76FDDE1CA2EF1@cpex3.channelpoint.com> From: Troy Noble To: "'cygwin AT cygwin DOT com'" Subject: RE: broken CTRL-BREAK handling Date: Tue, 17 Jul 2001 14:06:21 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Scanned-By: MIMEDefang 1.0 (http://www.roaringpenguin.com/mimedefang/) b20.1 handled it differently. If I press the [X] or CTRL-BREAK in a b20.1 window, JDK dutifully dumps the stack trace. Just one of several things that worked in b20.1 that are broken in cygwin 1.x. Troy -----Original Message----- From: Christopher Faylor [mailto:cgf AT redhat DOT com] Sent: Tuesday, July 17, 2001 1:37 PM To: cygwin AT cygwin DOT com Subject: Re: broken CTRL-BREAK handling On Tue, Jul 17, 2001 at 01:00:25PM -0600, Troy Noble wrote: >In exceptions.cc:ctrl_c_handler > >I think the following code should be added: > > /* Return FALSE to allow other control handlers to handle CTRL-BREAK */ > if (type == CTRL_BREAK_EVENT) > return FALSE; > >before the section of code that checks the pids, sids, pgids etc. and >eventually culminates in a > > kill (-myself->pid, SIGINT); > >Without this code, the current behavior in cygwin 1.3.2 is to send >SIGINT to the process group whether you press CTRL-C or >CTRL-BREAK. Cygwin has considered CTRL-BREAK to be the same thing as CTRL-C for about five years or so. The fact that this inconveniences JDK is regrettable but I'm not going to change well established behavior just to accomodate some non-cygwin program. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/