1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-12-29 19:12:20 +01:00

19140: release process group on exit if acquired

This commit is contained in:
Peter Stephenson 2004-03-16 10:58:45 +00:00
parent 796c38ccd5
commit 8860363e5c
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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