delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/27/20:40:50

X-Spam-Check-By: sourceware.org
Message-ID: <e4d6a34d0610271740w62df0aa3l8da64ee19cc90cbf@mail.gmail.com>
Date: Fri, 27 Oct 2006 17:40:36 -0700
From: "Hari Krishna Dara" <haridara AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: rxvt: Ctrl+C leaves child process of native processes
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

When I hit ^C in an rxvt window (no X), it doesn't result in killing
all the child processes.

In this specific case, I am running ant, either through ant.bat, ant
(shell script) or through a custom perl wrapper (which directly
executes java bypassing  ant.bat or ant).

When the perl wrapper is used it is started from another batch file,
so here is how the process execution:
- batch starts a perl command
- perl command starts java (ant)
- ant starts another java process

The process tree as shown by sysinternals' process explorer is:

bash
  cmd
    perl
      java
        java

When I hit ^C, bash and cmd exit immediately leaving perl and the two
java processes.

Similarly, when I use the ant shell script, I see:

sh
  java
    java

Hitting ^C in this case kills sh and the outer java process leaving
the last java process.

When using ant.bat, I see:

bash
  cmd
    java
      java

Hitting ^C in this case kills bash and cmd, leaving the two java processes.

A bit of analysis shows that the propagation of kill signal stops with
the first non-cygwin application. I searched for known issues and
found a thread about killing JBoss server, but there were not many
details on what exactly the problem was and there was no resolution.
While I can't believe that no one else has been seeing this error, I
can only hope that I am missing to see some known information on this.
I appreciate any help on how to solve this problem if there is one
existing. I have very recent cygwin:

CYGWIN_NT-5.1 whitney 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin

Thank you,
Hari

--
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