zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Cant fg a suspended su (4.1.0-dev-7)
Date: Sat, 22 Feb 2003 23:04:16 +0000	[thread overview]
Message-ID: <1030222230416.ZM10265@candle.brasslantern.com> (raw)
In-Reply-To: <200302211807.h1LI74n23531@aragorn.cortexmachina.com>

On Feb 21,  1:07pm, Peter Whaite wrote:
}
} I've noticed that I cannot resume a suspened su session lately (It
} happened in 4.1.0-dev-6 as well). 
} 
} There is approximately a 1 second pause between the contined and the
} suspended messages.  
} 
} Any idea why the su command re-suspends after the continue?

It appears to be this loop in bin_suspend():

1669	    if (jobbing) {
1670		/* stay suspended */
1671		while (gettygrp() != mypgrp) {
1672		    sleep(1);
1673		    if (gettygrp() != mypgrp)
1674			kill(0, SIGTTIN);
1675		}
1676		/* restore signal handling */
1677		signal_ignore(SIGTTOU);
1678		signal_ignore(SIGTSTP);
1679		signal_ignore(SIGTTIN);
1680	    }

However, that code has been there forever [*] so the actual problem must
lie in some change that's been made to tty process group handling.  I
would tend to suspect that zsh-workers/17859 is the culprit.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


  reply	other threads:[~2003-02-22 22:04 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-21 18:07 Peter Whaite
2003-02-22 23:04 ` Bart Schaefer [this message]
2003-02-22 23:42   ` Bart Schaefer
2003-02-25  0:38   ` Philippe Troin
2003-02-27  8:47     ` Help needed with execcmd() (was: Re: Cant fg a suspended su (4.1.0-dev-7)) Philippe Troin
2003-03-01 18:42       ` Bart Schaefer
2003-02-25  1:29 ` Cant fg a suspended su (4.1.0-dev-7) Philippe Troin
2003-02-25  3:00   ` Peter Whaite
2003-02-25  3:37     ` Philippe Troin
2003-02-25 16:34       ` Philippe Troin
2003-02-25 17:02         ` Peter Whaite
2003-03-06  4:47           ` Philippe Troin
2003-03-06 18:23             ` Peter Whaite
2003-03-06 22:14               ` Philippe Troin
2003-03-07 12:18               ` Peter Stephenson
2003-03-07 14:01                 ` Philippe Troin
2003-02-26  6:18 ` Philippe Troin
2003-02-26 16:25   ` Bart Schaefer
2003-02-26 16:34     ` Peter Stephenson
2003-02-26 20:30     ` Philippe Troin

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=1030222230416.ZM10265@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --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).