zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Bart Schaefer" <schaefer@candle.brasslantern.com>,
	"ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: Blocking zpty once again
Date: Fri, 3 Mar 2000 21:01:54 +0300	[thread overview]
Message-ID: <000001bf853a$8f1d1b30$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <1000303173706.ZM20761@candle.brasslantern.com>


 at one point while trying the changes below one of the zsh
> running inside zpty exited prematurely, and the result was that comptest
> locked up and had to be killed.  I didn't know how long to wait before
> giving up on it.
>

Yes. Playing with zpty I found, that there is no way to kill zpty read. I
tried

zpty -r cmd foo pat

with wrong (as it turned out) pattern. It was in interactive shell, and
neither of ^C, ^\, ^Z helped.

Exactly for this reason we need either read with timeout or general purpose
select (nice to have independently of zpty).

Also, I'm not sure what happens when child exits. I tried something simple
as

zsh cat cat /etc/profile
zsh -r cat

but got nothing. Looks like pty was flushed in this case. Child did not
exist anymore, but zsh still insisted on valid `cat' handle. I'd expect it
to detect dead pty - not sure, how to do it in general case.

/andrej


  reply	other threads:[~2000-03-03 18:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-03 11:43 Running tests without installing Zsh Andrej Borsenkow
2000-03-03 17:37 ` PATCH: " Bart Schaefer
2000-03-03 18:01   ` Andrej Borsenkow [this message]
2000-03-03 18:23   ` Zefram

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='000001bf853a$8f1d1b30$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=schaefer@candle.brasslantern.com \
    --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).