From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5212 invoked from network); 3 Mar 2000 18:02:02 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Mar 2000 18:02:02 -0000 Received: (qmail 4420 invoked by alias); 3 Mar 2000 18:01:57 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9983 Received: (qmail 4413 invoked from network); 3 Mar 2000 18:01:56 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "Bart Schaefer" , "ZSH workers mailing list" Subject: Blocking zpty once again Date: Fri, 3 Mar 2000 21:01:54 +0300 Message-ID: <000001bf853a$8f1d1b30$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 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