From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25140 invoked from network); 2 Mar 2009 10:25:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Mar 2009 10:25:15 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 31498 invoked from network); 2 Mar 2009 10:25:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Mar 2009 10:25:10 -0000 Received: (qmail 8699 invoked by alias); 2 Mar 2009 10:25:05 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26660 Received: (qmail 8687 invoked from network); 2 Mar 2009 10:25:04 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 2 Mar 2009 10:25:04 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 714188058F82 for ; Mon, 2 Mar 2009 11:24:59 +0100 (CET) Received: from rly30g.srv.mailcontrol.com (localhost.localdomain [127.0.0.1]) by rly30g.srv.mailcontrol.com (MailControl) with ESMTP id n22AOjMD030593 for ; Mon, 2 Mar 2009 10:24:56 GMT Received: from submission.mailcontrol.com (submission.mailcontrol.com [86.111.216.190]) by rly30g.srv.mailcontrol.com (MailControl) id n22ANwAI023391 for zsh-workers@sunsite.dk; Mon, 2 Mar 2009 10:23:58 GMT Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by [10.71.0.140] (envelope-sender Peter.Stephenson@csr.com) (MIMEDefang) with ESMTP id n22ANoTV022257; Mon, 02 Mar 2009 10:23:58 +0000 (GMT) Received: from news01 ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Mon, 2 Mar 2009 10:23:51 +0000 Date: Mon, 2 Mar 2009 10:23:50 +0000 From: Peter Stephenson To: Lionel Flandrin Cc: zsh-workers@sunsite.dk Subject: Re: zsh 4.3.9: Interrupted "tcsetattr" call problem, tiling-wm related Message-ID: <20090302102350.4fb8f638@news01> In-Reply-To: <20090227161933.GE4173@shame.elexo.fr.local> References: <20090227161933.GE4173@shame.elexo.fr.local> Organization: CSR X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Mar 2009 10:23:51.0781 (UTC) FILETIME=[FB84C150:01C99B20] X-Scanned-By: MailControl A_08_51_00 (www.mailcontrol.com) on 10.71.1.140 X-Virus-Scanned: ClamAV 0.92.1/9061/Mon Mar 2 10:28:18 2009 on bifrost X-Virus-Status: Clean On Fri, 27 Feb 2009 17:20:25 +0100 Lionel Flandrin wrote: > A couple of grep and dirty fprintf in the source code later, I think > I've found the root of the problem at Src/utils.c line 1440: > > 1440 tcsetattr(SHTTY, TCSADRAIN, &ti->tio); > 1441 /* if (tcsetattr(SHTTY, TCSADRAIN, &ti->tio) == -1) */ > > (It's interresting that the bugfix is almost already there :). ... just after the line that says "Princeton's include files are screwed up". It's interesting we're relying on an ad-hoc fix for a problem (although not related to this one) on a single system that probably disappeared ten years ago. > Indeed, the problem seems to be that I use a tiling WM (stumpwm) that > If I change the call to: > > while (tcsetattr(SHTTY, TCSADRAIN, &ti->tio) == -1 && errno == EINTR); > > It fixes the problem. That looks fine, I've committed it. Thanks. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070