summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/builtin.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a020caccf..9e0f3142e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-16  Peter Stephenson  <pws@csr.com>
+
+	* 19140 (patch reversed): Nicholas George: Src/builtin.c: Release
+	process group on shell exit if acquired.
+
 2004-03-14  Oliver Kiddle  <opk@zsh.org>
 
 	* unposted: LICENCE: update year to 2004
diff --git a/Src/builtin.c b/Src/builtin.c
index fbca0b5f5..2ae7e9bbf 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -4051,6 +4051,9 @@ zexit(int val, int from_where)
     if (sigtrapped[SIGEXIT])
 	dotrap(SIGEXIT);
     runhookdef(EXITHOOK, NULL);
+    if (opts[MONITOR] && interact && (SHTTY != -1)) {
+       release_pgrp();
+    }
     if (mypid != getpid())
 	_exit(val);
     else