summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-02-03 16:09:43 -0500
committerJune McEnroe <june@causal.agency>2021-02-04 17:10:55 -0500
commitcb2ba25a10b385397fcdccbd7609b8cb75ad8633 (patch)
treea51e3854f46227d6cbc795d0c60936196f4f977e /bin
parentRemove cgit logo using cgitrc (diff)
downloadsrc-cb2ba25a10b385397fcdccbd7609b8cb75ad8633.tar.gz
src-cb2ba25a10b385397fcdccbd7609b8cb75ad8633.zip
Warn twice about stopped jobs
Not really sure why this previously set job_warning to 2 rather
than 1. Anyway I often just press ^D again after the warning without
really thinking, so do it twice.
Diffstat (limited to '')
-rw-r--r--bin/dash/src/jobs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dash/src/jobs.c b/bin/dash/src/jobs.c
index d4c13c0f..5104a5e5 100644
--- a/bin/dash/src/jobs.c
+++ b/bin/dash/src/jobs.c
@@ -1205,12 +1205,12 @@ stoppedjobs(void)
 	int retval;
 
 	retval = 0;
-	if (job_warning)
+	if (job_warning > 1)
 		goto out;
 	jp = curjob;
 	if (jp && jp->state == JOBSTOPPED) {
 		out2str("You have stopped jobs.\n");
-		job_warning = 2;
+		job_warning++;
 		retval++;
 	}