diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2004-03-16 10:58:45 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2004-03-16 10:58:45 +0000 |
commit | 8860363e5c989b0026e482a2cd9d04d4492816af (patch) | |
tree | 6329d5e9234f64aed1b38996221ec40f15e5879f | |
parent | 796c38ccd58fe961a11361ec2209c795d725bf75 (diff) | |
download | zsh-8860363e5c989b0026e482a2cd9d04d4492816af.tar.gz zsh-8860363e5c989b0026e482a2cd9d04d4492816af.tar.xz zsh-8860363e5c989b0026e482a2cd9d04d4492816af.zip |
19140: release process group on exit if acquired
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/builtin.c | 3 |
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 |