about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-03-16 10:58:45 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-03-16 10:58:45 +0000
commit8860363e5c989b0026e482a2cd9d04d4492816af (patch)
tree6329d5e9234f64aed1b38996221ec40f15e5879f
parent796c38ccd58fe961a11361ec2209c795d725bf75 (diff)
downloadzsh-8860363e5c989b0026e482a2cd9d04d4492816af.tar.gz
zsh-8860363e5c989b0026e482a2cd9d04d4492816af.tar.xz
zsh-8860363e5c989b0026e482a2cd9d04d4492816af.zip
19140: release process group on exit if acquired
-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