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: <4040E0B0.4020805@acm.org> Date: Sat, 28 Feb 2004 10:40:48 -0800 From: David Rothenberger User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) MIME-Version: 1.0 To: Chuck Irvine CC: cygwin AT cygwin DOT com Subject: Re: Control-c not working in rxvt (for exiting jboss server) References: <000d01c3fe1f$3bfbe0f0$6500a8c0 AT Ray> In-Reply-To: <000d01c3fe1f$3bfbe0f0$6500a8c0@Ray> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Chuck Irvine wrote: > When I start Jboss server from rxvt, I cannot exit, that is, shutdown > the server, using Control-c. If I start the server from the normal > cygwin bash prompt, that is, cywin.bat, control-c shuts down the server. > Control-c from rxvt in other contexts does seem to work, for example, if > I invoke "ping -n 100 localhost" control-c does cause an exit. Cygcheck > output attached. Thanks > > Chuck Chuck, I would start by trying the latest snapshot. Cygwin 1.5.7 has some problems with signal handling. If you start JBoss with a script, you could also try changing it from /bin/sh to /bin/bash or vice versa, since I seem to recall the two shells handling signals differently in 1.5.7. That might not be true any longer, though, with the latest ash. Finally, you can try to explicitly kill the Jboss (Java?) process using something like the following. --------------------------- #!/bin/bash enTrapSIGINT () { kill $child_pid; exit; } trap enTrapSIGINT 2 startJboss & child_pid = $! wait ---------------------------- Dave -- 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/