summaryrefslogtreecommitdiff
path: root/jobs.c
diff options
context:
space:
mode:
Diffstat (limited to 'jobs.c')
-rw-r--r--jobs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jobs.c b/jobs.c
index 657b84f..90a7f21 100644
--- a/jobs.c
+++ b/jobs.c
@@ -4707,7 +4707,7 @@ without_job_control ()
void
end_job_control ()
{
- if (interactive_shell || job_control) /* XXX - should it be just job_control? */
+ if (job_control)
{
terminate_stopped_jobs ();