From: Timothy Miller <tsm@cs.brown.edu>
To: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
Cc: zsh-workers@sunsite.dk
Subject: Re: fatal flaw zsh 4.0.1 on irix 6.3 & 6.5: suspend "ls -l|less" then resume hangs
Date: 31 Jul 2001 10:35:16 -0400 [thread overview]
Message-ID: <yehy9p5f9p7.fsf@water.cs.brown.edu> (raw)
In-Reply-To: Sven Wischnowsky's message of "Tue, 31 Jul 2001 10:20:57 +0200 (MET DST)"
On Tue, 31 Jul 2001 10:20:57 +0200 (MET DST), Sven Wischnowsky <wischnow@informatik.hu-berlin.de> wrote:
> > So it looks like this patch fixes the hanging problem, except that cat still
> > isn't stopped (it is when I do the same test under solaris with 4.0.1).
>
> Yes, it's a lot better already. You could test if modifying the line I
> changed to use kill() instead of killpg() to:
>
> kill(-jobtab[list_pipe_job].gleader, 0) == -1) {
>
> fixes the problem with cat not being stopped. (I've only inserted a `-'
> before the `jobtab[...]' here.)
Unfortunately, no such luck. However, it turns out that zsh 3.1.6 results in
the same behavior, and in fact if I manually send a TSTP to the right
process group, cat is still not suspended. For a larger set of processes,
from "man makemovie", all but one process is stopped (in 3.1.6):
running
F S UID PID PPID PGID SID C PRI NI P SZ:RSS WCHAN STIME TTY TIME CMD
b0 S tsm 915 914 915 915 0 39 20 * 774:436 8039d510 12:04:34 ttyq4 0:06 -zsh-beta
b0 S tsm 21359 915 21359 915 0 60 20 * 431:105 804219ac 10:22:24 ttyq4 0:00 man makemovie
b0 S tsm 21361 21360 21359 915 0 60 20 * 71:29 804221dc 10:22:24 ttyq4 0:00 sh -c pcat /usr/share/catman/u_man/
b0 S tsm 21362 21361 21359 915 0 28 20 * 478:183 8039e0b0 10:22:24 ttyq4 0:00 less
b0 S tsm 21364 21362 21359 915 0 60 20 * 368:130 c0674a40 10:22:24 ttyq4 0:00 col
b0 S tsm 21360 21359 21359 915 0 60 20 * 427:101 80424acc 10:22:24 ttyq4 0:00 man makemovie
^Z
F S UID PID PPID PGID SID C PRI NI P SZ:RSS WCHAN STIME TTY TIME CMD
b0 S tsm 915 914 915 915 0 28 20 * 774:436 8039e0b0 12:04:34 ttyq4 0:06 -zsh-beta
b0 T tsm 21359 915 21359 915 0 60 20 * 431:105 - 10:22:24 ttyq4 0:00 man makemovie
b0 T tsm 21361 21360 21359 915 0 60 20 * 71:29 - 10:22:24 ttyq4 0:00 sh -c pcat /usr/share/catman/u_man/
b0 T tsm 21362 21361 21359 915 0 60 20 * 478:185 - 10:22:24 ttyq4 0:00 less
b0 S tsm 21364 21362 21359 915 0 60 20 * 368:130 c0674a40 10:22:24 ttyq4 0:00 col
b0 T tsm 21360 21359 21359 915 0 60 20 * 427:101 - 10:22:24 ttyq4 0:00 man makemovie
But with "man killpg", all four processes (not including a col in this case)
are stopped. I've been using this version of zsh for years now with no
problems, so if this is an IRIX bug, it doesn't seem to affect anything I've
noticed. (Well, there is one minor problem I've had, but it happens on other
OSs too (I think--now I'm going to have to check): occasionally and
nondeterministically zsh will fail to return immediately to a prompt after a
suspended less, but hitting return does bring back the prompt.)
Tim
next prev parent reply other threads:[~2001-07-31 14:36 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-11 15:11 Timothy Miller
2001-06-12 8:15 ` Sven Wischnowsky
2001-06-12 15:00 ` Timothy Miller
[not found] ` <1010612154026.ZM24394@candle.brasslantern.com>
2001-06-12 16:13 ` Timothy Miller
2001-06-13 3:55 ` Bart Schaefer
2001-07-06 22:40 ` Timothy Miller
2001-06-14 7:32 ` Sven Wischnowsky
2001-07-06 22:52 ` Timothy Miller
2001-07-10 15:22 ` Timothy Miller
2001-07-10 16:25 ` Bart Schaefer
2001-07-10 21:26 ` Timothy Miller
2001-07-10 23:27 ` Bart Schaefer
2001-07-11 8:33 ` Sven Wischnowsky
2001-07-11 9:51 ` Sven Wischnowsky
2001-07-11 18:59 ` Timothy Miller
2001-07-12 3:39 ` Bart Schaefer
2001-07-30 20:18 ` Timothy Miller
2001-07-30 21:24 ` Bart Schaefer
2001-07-30 22:08 ` Timothy Miller
2001-07-31 8:20 ` Sven Wischnowsky
2001-07-31 8:30 ` Borsenkow Andrej
2001-07-31 14:35 ` Timothy Miller [this message]
2001-07-31 20:50 ` Timothy Miller
2001-08-01 8:35 ` Sven Wischnowsky
2002-02-25 9:31 ` Sven Wischnowsky
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=yehy9p5f9p7.fsf@water.cs.brown.edu \
--to=tsm@cs.brown.edu \
--cc=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.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).