From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10143 invoked from network); 25 Jun 1999 15:01:36 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 25 Jun 1999 15:01:36 -0000 Received: (qmail 1846 invoked by alias); 25 Jun 1999 15:01:02 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6855 Received: (qmail 1839 invoked from network); 25 Jun 1999 15:01:00 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "Sven Wischnowsky" , Subject: RE: PATCH: loop killing Date: Fri, 25 Jun 1999 19:00:54 +0400 Message-ID: <001d01bebf1b$85f76dc0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 In-reply-to: <199906251421.QAA01609@beta.informatik.hu-berlin.de> Importance: Normal > > > 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