zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Sven Wischnowsky" <wischnow@informatik.hu-berlin.de>,
	<zsh-workers@sunsite.auc.dk>
Subject: RE: PATCH: loop killing
Date: Fri, 25 Jun 1999 19:00:54 +0400	[thread overview]
Message-ID: <001d01bebf1b$85f76dc0$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <199906251421.QAA01609@beta.informatik.hu-berlin.de>

>
> > It is even worse
> >
> > bor@itsrm2:~%> while true
> > do
> > zcat
> > done
> > ^Z^Z^Z^Z^Z^Z^Z
> >
> > Nothing happens at all.
>
> This works for me.
>

It works for me for zsh with SHLVL > 1 :

bor@itsrm2:~%> echo $SHLVL
1
bor@itsrm2:~%> zsh
bor@itsrm2:~%> while true
while> do
while> zcat
while> done
^Zzsh: suspended  while true; do; zcat; done
bor@itsrm2:~%> echo $SHLVL
2
bor@itsrm2:~%> exit
bor@itsrm2:~%> echo $SHLVL
1
bor@itsrm2:~%> ps
   PID TTY      TIME CMD
  4598 pts/5    0:01 zsh
bor@itsrm2:~%>

Note, that no notification "you have stopped jobs" appear. But

bor@itsrm2:~%> zcat
^Z
zsh: suspended  zcat
bor@itsrm2:~%> exit
zsh: you have suspended jobs.
bor@itsrm2:~%> echo $SHLVL
1

Something is fishy. The same happens for me either under dtterm or xterm or in
telnet login zsh. dtterm and zsh run in different process groups.

The only difference, that I currently can see, is, that when it does not work,
zsh is session leader:

bor@itsrm2:~%> ps -j
   PID  PGID   SID TTY      TIME CMD
  4598  4598  4598 pts/5    0:02 zsh

but

bor@itsrm2:~%> zsh
bor@itsrm2:~%> ps -j
   PID  PGID   SID TTY      TIME CMD
  4598  4598  4598 pts/5    0:03 zsh
  6897  6897  4598 pts/5    0:00 zsh
bor@itsrm2:~%>


For some reason, in the first case Zsh does not get SIGCHLD (or is ignoring it)
and does not know that child was stopped.

/andrej


  reply	other threads:[~1999-06-25 15:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-25 14:21 Sven Wischnowsky
1999-06-25 15:00 ` Andrej Borsenkow [this message]
1999-06-25 16:23   ` Andrej Borsenkow
1999-06-25 16:29     ` Peter Stephenson
  -- strict thread matches above, loose matches on Subject: below --
1999-06-24 11:55 Sven Wischnowsky
1999-06-24  9:08 Sven Wischnowsky
1999-06-24  9:00 ` Peter Stephenson
1999-06-25 13:21 ` Andrej Borsenkow

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='001d01bebf1b$85f76dc0$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.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).