zsh-workers
 help / color / mirror / code / Atom feed
* patch to call release_pgrp() on exit
@ 2004-03-15 18:54 Danek Duvall
  2004-03-16 11:08 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Danek Duvall @ 2004-03-15 18:54 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

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

[-- Attachment #2: pgrp.patch --]
[-- Type: text/plain, Size: 327 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-16 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-15 18:54 patch to call release_pgrp() on exit Danek Duvall
2004-03-16 11:08 ` Peter Stephenson
2004-03-16 16:35   ` Danek Duvall

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).