summaryrefslogtreecommitdiff
path: root/jobs.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2016-08-22 15:58:43 -0400
committerChet Ramey <chet.ramey@case.edu>2016-08-22 15:58:43 -0400
commit955543877583837c85470f7fb8a97b7aa8d45e6c (patch)
treeb239e7c3983a9189b8f0104854ee82283c5807ab /jobs.c
parenta4eef1991c25c9d1c55f777952cd522c762c6fc3 (diff)
downloadbash-4.4-testing.tar.gz
bash-4.4-rc2 releasebash-4.4-rc2bash-4.4-testing
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 55d6ba19..1d8405d8 100644
--- a/jobs.c
+++ b/jobs.c
@@ -3845,6 +3845,7 @@ run_sigchld_trap (nchild)
unwind_protect_pointer (the_pipeline);
unwind_protect_pointer (subst_assign_varlist);
unwind_protect_pointer (this_shell_builtin);
+ unwind_protect_pointer (temporary_env);
/* We have to add the commands this way because they will be run
in reverse order of adding. We don't want maybe_set_sigchld_trap ()
@@ -3854,6 +3855,7 @@ run_sigchld_trap (nchild)
subst_assign_varlist = (WORD_LIST *)NULL;
the_pipeline = (PROCESS *)NULL;
+ temporary_env = 0; /* traps should not run with temporary env */
running_trap = SIGCHLD + 1;