From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: Re: zpty read hangs (RE: nslookup (function) problem)
Date: Fri, 5 May 2000 11:10:51 +0200 (MET DST) [thread overview]
Message-ID: <200005050910.LAA25069@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Andrej Borsenkow"'s message of Fri, 5 May 2000 12:27:09 +0400
Andrej Borsenkow wrote:
> > > Unfortunately, function nslookup hangs completely in this case:
> > >
> > > bor@itsrm2% autoload -U nslookup
> > > bor@itsrm2% nslookup
> > > Default Server: mowd017a.mow.siemens.ru
> > > Address: 139.24.18.1
> > >
> > > > ?
> > > nothing comes here; it habgs; it is no more possible to
> > kill it with ^C,
> > > ^\ or ^Z.
>
> I want to stress it - in this case zsh *hangs* - there is no way to
> break out of 'zpty -r'. That is unacceptable, even more so for
> interactive shell.
I was wondering about this, because I had changed it to test
errflag. But nslookup traps SIGINT, so we have to use the same test as
in a normal read...
Bye
Sven
Index: Src/Modules/zpty.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/zpty.c,v
retrieving revision 1.5
diff -u -r1.5 zpty.c
--- Src/Modules/zpty.c 2000/05/04 13:40:06 1.5
+++ Src/Modules/zpty.c 2000/05/05 09:09:31
@@ -486,7 +486,7 @@
if (!prog && !ret)
break;
- } while (!errflag &&
+ } while (!errflag && !breaks && !retflag && !contflag &&
(prog ? (used < READ_MAX && (!ret || !pattry(prog, buf))) :
(used < READ_LEN)));
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
reply other threads:[~2000-05-05 9:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200005050910.LAA25069@beta.informatik.hu-berlin.de \
--to=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).