Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: long-standing tty related issue: wrapped Emacs not suspended
- X-seq: zsh-workers 43517
- From: Joey Pabalinas <joeypabalinas@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: long-standing tty related issue: wrapped Emacs not suspended
- Date: Fri, 21 Sep 2018 19:51:48 -1000
- Cc: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>, "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>, Joey Pabalinas <joeypabalinas@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=dVx6eAX2BQGPyHex5gV8xkDciDdJbS37g5dn762xsc0=; b=LPFItbo2xETB7P2xeEznLQcOFSXUNKQNkEbGYfZZxVIUQyOOjKcsFpr8qyoIueghGv eXe3yUc1UckmlmylWi9MDRNoTNrg8lefo0gTbWL2klcvSOpsue/oJy+QiARvlfcAz41h j03xkRthbPCHJLgAZVq2ciFiFVyjylttA48J2U5TTs510U2kSNyPAOKaCF0a8qL7Yjb6 hjgY+H07GqPQB06mhYzlfeZkbQxadU31nyop9UIMNEwKBRbxhxzo7Vbh1/woJVd1X7ZM dWXWzKv0KJRmdPbPToywyLyqPwh0tGOmHs4FP0YeOj0zCnqVAoDDIQmkwvaCwWRdOKaG fWUQ==
- In-reply-to: <CAH+w=7Z_xB9uXHHuPs59bxMaufCDRFcBp8cs-94Ebr3ggYjS0g@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: Joey Pabalinas <joeypabalinas@xxxxxxxxx>, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>, "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180920123005.GA20647@zira.vinc17.org> <20180921175740.6ab97a81@pws-HP.localdomain> <CAH+w=7Z_xB9uXHHuPs59bxMaufCDRFcBp8cs-94Ebr3ggYjS0g@mail.gmail.com>
On Fri, Sep 21, 2018 at 06:17:47PM -0700, Bart Schaefer wrote:
> FWIW I can't get what Vincent describes to happen at all with the
> above example and the current git checkout, even after assorted
> bg/fg/^Z/etc. But the system on which I can currently test doesn't
> have an X-enabled emacs.
This did confuse me a bit earlier in Peter's email, as I also had this
exact behavior on 5.5.1.r143.g225b35c9070f94cf79 where -CONT didn't even
seem to work regardless of which child process I sent it to. I had just
chalked it up to one of my weird configs, but I guess this is pretty
much happening to everyone running the development versions?
> Also, the parent shell should probably be sending a SIGCONT to all
> those jobs whenever they are fg'd, even if it believes they are
> already running. SIGCONT is harmless for a job that is not stopped,
> and trusting the job table idea of the process state is an unnecessary
> optimization.
Interestingly enough I did once run into a program that used a SIGCONT
handler, reset to default disposition in SIGTSTP handler, for some internal
callback-ish stuff. My guess was it assumed SIGCONT to be a "safe" sentinel
signal (while completely forgetting about its uncatchable brother SIGSTOP),
but cases like that are mostly just broken curiosities and definitely not
worth worrying about :)
--
Cheers,
Joey Pabalinas
Attachment:
signature.asc
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author