about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/jobs.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 360250522..b59babe20 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-29  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 14524: Src/jobs.c: print at least a warning when disowning a
+	stopped job
+
 2001-05-28  Clint Adams  <schizo@debian.org>
 
 	* 14517: Src/Builtins/rlimits.awk: fix glibc2.2.3
diff --git a/Src/jobs.c b/Src/jobs.c
index bfc95ab61..82e4926ff 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -1392,6 +1392,14 @@ bin_fg(char *name, char **argv, char *ops, int func)
 	    printjob(job + jobtab, lng, 2);
 	    break;
 	case BIN_DISOWN:
+	    if (jobtab[job].stat & STAT_STOPPED)
+                zwarnnam(name,
+#ifdef USE_SUSPENDED
+                         "warning: job is suspended",
+#else
+                         "warning: job is stopped",
+#endif
+                         NULL, 0);
 	    deletejob(jobtab + job);
 	    break;
 	}