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
commit9b7b605e5abeee8b93dacd2e7dc3e66fb7916362 (patch)
tree9e4e2729a5c0598145694a42b5dba55f28382db4 /bin
parentRemove cgit logo using cgitrc (diff)
downloadsrc-9b7b605e5abeee8b93dacd2e7dc3e66fb7916362.tar.gz
src-9b7b605e5abeee8b93dacd2e7dc3e66fb7916362.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 'bin')
-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++;
 	}