about summary refs log tree commit diff
path: root/Src/builtin.c
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 /Src/builtin.c
parent796c38ccd58fe961a11361ec2209c795d725bf75 (diff)
downloadzsh-8860363e5c989b0026e482a2cd9d04d4492816af.tar.gz
zsh-8860363e5c989b0026e482a2cd9d04d4492816af.tar.xz
zsh-8860363e5c989b0026e482a2cd9d04d4492816af.zip
19140: release process group on exit if acquired
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c3
1 files changed, 3 insertions, 0 deletions
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