summary refs log tree commit diff
path: root/bin/dash
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/dash
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 'bin/dash')
-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++;
 	}
 
ib-man-pages/commit/gzprintf.3?id=510d1f042a94b5435d1e514a452a9fa193eb2d9e&follow=1'>Add gzprintf.3June McEnroe 2018-11-13Add gzfwrite.3June McEnroe 2018-11-13Add gzwrite.3June McEnroe 2018-11-12Add gzfread.3June McEnroe 2018-11-12Add gzread.3June McEnroe 2018-11-12Add gzsetparams.3June McEnroe 2018-11-12Add gzbuffer.3June McEnroe 2018-11-12Add gzdopen to gzopen.3June McEnroe 2018-11-12Add gzopen.3June McEnroe 2018-11-12Add inflateBackEnd.3June McEnroe 2018-11-12Add inflateBack.3June McEnroe 2018-11-12Add inflateBackInit.3June McEnroe 2018-11-11Add inflateGetHeader.3June McEnroe 2018-11-11Add inflateMark.3June McEnroe 2018-11-11Add inflatePrime.3June McEnroe 2018-11-11Add inflateReset.3June McEnroe 2018-11-11Add inflateCopy.3June McEnroe 2018-11-11Add inflateSync.3June McEnroe 2018-11-11Add inflateGetDictionary.3June McEnroe 2018-11-11Add inflateSetDictionary.3June McEnroe 2018-11-11Add inflateInit2.3June McEnroe