X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: <27221260 DOT post AT talk DOT nabble DOT com> Date: Tue, 19 Jan 2010 17:02:28 +0000 Message-ID: <416096c61001190902n4870f492ib56a92b86f53c27a@mail.gmail.com> Subject: Re: rxvt ctrl-c killing process From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Sven K=C3=B6hler: > David Smiley: >> I have been fed-up with the default GUI shell on Cygwin, being used to t= he >> great Terminal that comes with Mac OS X. =C2=A0Some googling around unco= vered >> that I should try "rxvt". =C2=A0My experience with rxvt is pretty good, = after >> reading online some basic configuration tips. =C2=A0But unfortunately I'= ve come >> across a deal-breaker and I'm not sure exactly what the culprit is. =C2= =A0If I >> run a java program from rxvt and control-C it (i.e. SIGINT) then it seem= s to >> kill -9 it instead of letting the program catch the signal to terminate.= =C2=A0I >> found a quickie Java code sample online that anyone can quickly compile = and >> try for themselves: =C2=A0http://waelchatila.com/2006/01/13/113714389663= 5.html >> save to CtrlC.java then type "javac CtrlC" then "java -cp . CtrlC" =C2= =A0 and >> then hit ctrl-c. =C2=A0It works properly in Cygwin's default GUI shell b= ut not >> rxvt. >> >> I *did* try searching the lists but didn't really find a resolution. > > Please install mintty (via Cygwin setup). I'm afraid that won't help with this issue. All a terminal does when Ctrl+C is pressed is write a ^C character to its pseudo terminal device (pty), and it's the pty driver that handles it (depending on the pty's settings): Cygwin processes are sent a SIGINT signal, but Windows processes such as Java are terminated outright. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple