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 [email protected] http://cnswww.cns.cwru.edu/~chet/