help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] How send signals to coproc automatically?


From: Chet Ramey
Subject: Re: [Help-bash] How send signals to coproc automatically?
Date: Mon, 12 Feb 2018 14:22:13 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 2/12/18 12:36 PM, Peng Yu wrote:
> Hi,
> 
> The trap in the coproc can be triggered. But when I type ctrl-c to
> terminate the current program. It will not be triggered. Is there a
> way to let the coproc get signals from the main program? Thanks

Why not just send a signal to $COPROC_PID using `kill'?

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

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