On 1/4/12 9:50 PM, Chet Ramey wrote:
> On 1/4/12 8:42 AM, Stas Sergeev wrote:
> 
>> I just meant for the way to make the trap handler
>> executed when the foreground job is running.
> 
> So you'd like the shell to act on a signal without `consulting' the
> foreground job?  Take a look at http://www.cons.org/cracauer/sigint.html ,
> keeping in mind that it applies to signals other than those generated
> from the keyboard, and that it applies whether or not job control is
> enabled, and see if you feel the same way.
> 
> I don't think it's a good idea.

The reference isn't really applicable -- though it's still a good read --
since it assumes the signal is sent to both the shell and the foreground
process.  I still don't think this is a good idea, though.

Chet


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

Reply via email to