Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: PATCH: loop killing
- X-seq: zsh-workers 6859
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>, "Sven Wischnowsky" <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: PATCH: loop killing
- Date: Fri, 25 Jun 1999 20:23:16 +0400
- Importance: Normal
- In-reply-to: <001d01bebf1b$85f76dc0$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
>
> The only difference, that I currently can see, is, that when it does not work,
> zsh is session leader:
Well, it does work with csh (that starts programs in seperate program group) and
does not work with ksh (that starts porgrams in it's own program group). It does
work if program is started alone and not as part of loop. Note the difference
(this is ksh, but the same is true for zsh):
This is for while true; zcat; done case:
bor@itsrm2:/tools/src/zsh-3.1.5-pws-23%> ps -jt pts/12
PID PGID SID TTY TIME CMD
9064 9002 9002 pts/12 0:00 zcat
9002 9002 9002 pts/12 0:00 ksh
And this is for the simple zcat case:
bor@itsrm2:/tools/src/zsh-3.1.5-pws-23%> ps -jt pts/12
PID PGID SID TTY TIME CMD
9072 9072 9002 pts/12 0:00 zcat
9002 9002 9002 pts/12 0:00 ksh
In the first case job PGID == SID and ^Z does not work (zcat gets TSTP but
[zk]sh never gets SIGCLD). In the second case job PGID != SID and all works like
a charm
Now, is it my system bug? Any idea?
/andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author