summaryrefslogtreecommitdiff
path: root/jobs.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2021-11-17 16:47:24 -0500
committerChet Ramey <chet.ramey@case.edu>2021-11-17 16:47:24 -0500
commit15409324f1974d41c183904ad575da7188058c1c (patch)
tree3c24681b1083c0f12ef00c0c7fdcd698d283370c /jobs.c
parentc839339fbfd2bb7ee4a523b64c7f3734ba36b9bc (diff)
downloadbash-15409324f1974d41c183904ad575da7188058c1c.tar.gz
Bash-5.1 patch 12: fix race condition with child processes and resetting trapped signals
Diffstat (limited to 'jobs.c')
-rw-r--r--jobs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/jobs.c b/jobs.c
index a581f305..7c3b6e83 100644
--- a/jobs.c
+++ b/jobs.c
@@ -2217,6 +2217,8 @@ make_child (command, flags)
signals to the default state for a new process. */
pid_t mypid;
+ subshell_environment |= SUBSHELL_IGNTRAP;
+
/* If this ends up being changed to modify or use `command' in the
child process, go back and change callers who free `command' in
the child process when this returns. */