Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
patch to call release_pgrp() on exit
- X-seq: zsh-workers 19626
- From: Danek Duvall <duvall@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: patch to call release_pgrp() on exit
- Date: Mon, 15 Mar 2004 10:54:21 -0800
- Mail-followup-to: Danek Duvall <duvall@xxxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
This patch was posted in 19140, but seems not to have been applied.
It's needed to get exiting from su working properly (without it, it
looks like the su shell is suspended, but foregrounding it makes it go
away).
I know there was some discussion at the time of how necessary this patch
was, but unless someone can point me to the specific misbehavior of
Solaris su, I'll need to include this patch for the Solaris build of
zsh (as I did for 4.1.1).
Can it make it into 4.2?
Thanks,
Danek
--- Src/builtin.c.orig Fri Sep 26 11:38:52 2003
+++ Src/builtin.c Fri Sep 26 11:39:19 2003
@@ -3977,6 +3977,9 @@
if (sigtrapped[SIGEXIT])
dotrap(SIGEXIT);
runhookdef(EXITHOOK, NULL);
+ if (opts[MONITOR] && interact && (SHTTY != -1)) {
+ release_pgrp();
+ }
if (mypid != getpid())
_exit(val);
else
Messages sorted by:
Reverse Date,
Date,
Thread,
Author