[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] How send signals to coproc automatically?
From: |
Peng Yu |
Subject: |
Re: [Help-bash] How send signals to coproc automatically? |
Date: |
Mon, 12 Feb 2018 20:45:34 +0000 |
I'd like to to make the behavior consistent whether there is coproc or not.
On Mon, Feb 12, 2018 at 1:22 PM Chet Ramey <address@hidden> wrote:
> 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/
>
--
Regards,
Peng