bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Bash not reacting to Ctrl-C


From: Chet Ramey
Subject: Re: [BUG] Bash not reacting to Ctrl-C
Date: Mon, 28 Feb 2011 21:12:54 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7

On 2/11/11 12:27 PM, Oleg Nesterov wrote:
> On 02/11, Illia Bobyr wrote:
>>
>> Do we really need to check wait_sigint_received here?
>> If the child exits because of SIGINT was indeed received all the
>> processes on the same terminal will also receive it.
> 
> Only if SIGINT was sent to pgrp (like ^C sends SIGTERM to the
> foreground process group).

This is only an issue for non-interactive shells (or, more precisely,
shells without job control active), in which case all of the processes
are in the same pgrp.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]