zsh-workers
 help / color / mirror / code / Atom feed
From: Danek Duvall <duvall@emufarm.org>
To: zsh-workers@sunsite.dk
Subject: patch to call release_pgrp() on exit
Date: Mon, 15 Mar 2004 10:54:21 -0800	[thread overview]
Message-ID: <20040315185421.GB31418@lorien.emufarm.org> (raw)

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

             reply	other threads:[~2004-03-15 18:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-15 18:54 Danek Duvall [this message]
2004-03-16 11:08 ` Peter Stephenson
2004-03-16 16:35   ` Danek Duvall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040315185421.GB31418@lorien.emufarm.org \
    --to=duvall@emufarm.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).