help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Is there a signal that can be automatically propogated t


From: Pierre Gaston
Subject: Re: [Help-bash] Is there a signal that can be automatically propogated to subprocesses?
Date: Sun, 15 Sep 2013 08:46:21 +0300

On Sat, Sep 14, 2013 at 7:43 PM, Peng Yu <address@hidden> wrote:
> Hi,
>
> The following code demonstrate that when script1.sh receives the TERM
> signal, it will be terminated. But script2.sh still runs until it
> finishes.
>

There isn't such a signal, but you can kill the whole process group,
for instance with:
kill -TERM 0



reply via email to

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