bug-bash
[Top][All Lists]
Advanced

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

Re: Change in SIGTERM behaviour in bash 4.3 when using readline


From: Greg Wooledge
Subject: Re: Change in SIGTERM behaviour in bash 4.3 when using readline
Date: Wed, 4 Mar 2020 15:51:00 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

On Wed, Mar 04, 2020 at 03:43:26PM -0500, Chet Ramey wrote:
> On 3/4/20 2:38 PM, Chris Down wrote:
> > --- a/jobs.c
> > +++ b/jobs.c
> > @@ -4584,6 +4584,7 @@ initialize_job_signals ()
> >    if (interactive)
> >      {
> >        set_signal_handler (SIGINT, sigint_sighandler);
> > +      set_signal_handler (SIGTERM, SIG_IGN);
> 
> This is how the code used to read, before I added the do-nothing signal
> handler as a result of
> 
> https://lists.gnu.org/archive/html/bug-bash/2013-02/msg00020.html

The man page might need an update as well.

SIGNALS
       When bash is interactive, in the  absence  of  any  traps,  it  ignores
       SIGTERM (so that kill 0 does not kill an interactive shell) [...]



reply via email to

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