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) [...]