Bash-4.3 patch 6
[platform/upstream/bash.git] / jobs.c
diff --git a/jobs.c b/jobs.c
index 2452779..4982019 100644 (file)
--- a/jobs.c
+++ b/jobs.c
@@ -4374,7 +4374,7 @@ without_job_control ()
 void
 end_job_control ()
 {
-  if (interactive_shell)               /* XXX - should it be interactive? */
+  if (interactive_shell || job_control)                /* XXX - should it be just job_control? */
     {
       terminate_stopped_jobs ();