From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17792 invoked by alias); 28 Apr 2013 15:31:12 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31347 Received: (qmail 6059 invoked from network); 28 Apr 2013 15:31:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at thregr.org designates 80.68.88.20 as permitted sender) Message-ID: <517D40B0.8020609@thregr.org> Date: Sun, 28 Apr 2013 17:30:56 +0200 From: Yuri D'Elia User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Bart Schaefer CC: Yuri D'Elia , zsh-workers@zsh.org Subject: Re: precmd: write error: interrupted References: <130425111646.ZM17258@torch.brasslantern.com> <130426080805.ZM18619@torch.brasslantern.com> <517C0E09.4040505@users.sourceforge.net> <130427153141.ZM20125@torch.brasslantern.com> In-Reply-To: <130427153141.ZM20125@torch.brasslantern.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 04/28/2013 12:31 AM, Bart Schaefer wrote: > What you've been reporting is almost certainly another variation of the > same bug. So maybe all we really need is this (plus some #ifdef): > > diff --git a/Src/utils.c b/Src/utils.c > index 26e2a5c..a20a5e1 100644 > --- a/Src/utils.c > +++ b/Src/utils.c > @@ -1323,7 +1323,9 @@ preprompt(void) > > /* If a shell function named "precmd" exists, * > * then execute it. */ > + signal_block(signal_mask(SIGWINCH)); /* See zleread() */ > callhookfunc("precmd", NULL, 1, NULL); > + signal_unblock(signal_mask(SIGWINCH)); > if (errflag) > return; This is going to solve the issue for "precmd" only though, not the SIGWHINCH issue as a whole. You can still arbitrarily stop the example loop I shown before by resizing the terminal window.