fix for background jobs killed by SIGTERM being marked as notified

This commit is contained in:
Chet Ramey
2024-02-09 10:56:43 -05:00
parent 092aa45bcc
commit fbc7d97de6
4 changed files with 34 additions and 12 deletions
+11 -1
View File
@@ -1,4 +1,4 @@
\
12/6/2020
---------
@@ -8561,3 +8561,13 @@ bashline.c
doc/bash.1,lib/readline/doc/readline.3
- minor updates to handle old versions of troff and groff warnings
Fixes from G. Branden Robinson <g.branden.robinson@gmail.com>
2/7
---
jobs.c
- notify_of_job_status: in non-interactive shells, if we're not going
to print information about a terminated background job
(SIGINT/SIGTERM/SIGPIPE), don't mark it as notified, in the same
way that we don't mark background jobs that exit cleanly as notified
Inspired by a discussion with Robert Elz <kre@munnari.oz.au> and
https://lists.gnu.org/archive/html/bug-bash/2024-01/msg00189.html