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 43558
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: Re: long-standing tty related issue: wrapped Emacs not suspended
- Date: Tue, 25 Sep 2018 22:47:44 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=WuryMURcCmBelu23dCtPvgkc5zL04yYwTrD2OPjwNZA=; b=MtTBMfm3ozFDB32VUznmVOCQeDP7dGEVZySPP33l9ZXn7MHG0aneQ/g5uTip6K1a5Z FrumM473dcEjp0h3rsmJbrOeRJjkxgs6jIYw6MeqACWIlqSm8zV/AcXagiMgcLKG/vcA aBDXIrSrf0UWXrZd9yqTcL89F0YVGfQfthg12TKlzFvuc7UYkD6RHjML2w9PUoXuAEkf tGZ2HierezdecAxx5+0Uyp7XlLtiLTI4Q/lQF7yrymllxtdOiQk1D5OiI1fx7siipDKc Mqdz/34aLjbp0gp+slj08LbemULFspkRRb1PNBv+ule3K+CFluBCvh1tEVmWXNyPR3RV 5xug==
- In-reply-to: <20180925103759eucas1p2a15709c7a9d8df72d8c390521a6999ab~XnlOUhOUG3250532505eucas1p2u@eucas1p2.samsung.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>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180920123005.GA20647@zira.vinc17.org> <20180921175740.6ab97a81@pws-HP.localdomain> <CGME20180924200327epcas5p16c59687fb2a9ac2ea8919ceab7705c02@epcas5p1.samsung.com> <20180924205106.03ee3da6@pws-HP.localdomain> <20180925103759eucas1p2a15709c7a9d8df72d8c390521a6999ab~XnlOUhOUG3250532505eucas1p2u@eucas1p2.samsung.com>
On Tue, Sep 25, 2018 at 3:38 AM Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
>
> As before, the only way of teasing out problems will be to try this out,
> so I'll commit it.
Minor nit -- if a normal background job gets stopped by a signal, the
shell reports it:
% e &
[1] 2936
%
[1] + suspended (tty output) e
But if you ^Z a function and then background it, the parent still
believes it to be running even though it has instantly stopped:
% e
zsh: suspended e
% bg
[1] + continued e
% jobs
[1] + running e
% ps a
PID TT STAT TIME COMMAND
2813 s003 S 0:00.09 Src/zsh -f
2906 s003 T 0:00.21 emacs
2908 s003 T 0:00.00 Src/zsh -f
2917 s003 R+ 0:00.00 ps a
The right thing happens if you "fg" it again (it gets sent a SIGCONT,
and the parent waits) so this isn't critical, but it's potentially
confusing.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author