delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/24/18:31:49

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
Date: Fri, 24 Jun 2005 18:31:31 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Bash 3.0-2 and kill
Message-ID: <20050624223131.GA27592@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <Pine DOT OSF DOT 4 DOT 21 DOT 0506242313310 DOT 4860-100000 AT ax0rm1 DOT roma1 DOT infn DOT it> <Pine DOT GSO DOT 4 DOT 61 DOT 0506241732200 DOT 5118 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.4.61.0506241732200.5118@slinky.cs.nyu.edu>
User-Agent: Mutt/1.5.8i

On Fri, Jun 24, 2005 at 05:38:02PM -0400, Igor Pechtchanski wrote:
>On Fri, 24 Jun 2005, Angelo Graziosi wrote:
>
>> I have noted that when one uses
>>
>>    kill -9 <process-PID>
>>
>> in bash 3.0-2 (test), the command kills the process but also bash (even
>> if one uses /bin/kill...).
>>
>> In bash 2.05b-17 that command kills only the process.
>>
>> These things happen with
>>
>>    cygwin 1.5.16-1
>>    cygwin 1.5.17-1
>>    snaps. 20050615
>>    snaps. 20050617
>>    snaps. 20050621
>>
>> (I have listed only the snaps I tried)
>>
>> Which is the normal behaviour (3.0-2 or 2.05b-17)?
>
>Unless the <process-PID> refers to the bash process itself, it seems that
>the behavior of 3.0-2 is wrong.  Not sure if it's a bash bug, or a Cygwin
>signal handling bug exposed by bash (the behavior of /bin/kill seems to
>point toward the latter).

Given that if cygwin was this broken all sorts of other things would be
broken as well, this is more likely a problem with bash.  Running bash
under zsh and trying a few kill -9's I finally got bash to exit with a
"segmentation fault", which is more likely to be a problem with bash
than with cygwin.

cgf

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