delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/28/13:41:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <daveroth AT acm DOT org>
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 <crirvine AT everestkc DOT net>
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>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019