Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: long-standing tty related issue: wrapped Emacs not suspended



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