From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18084 invoked by alias); 5 May 2013 00:08:00 -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: 31370 Received: (qmail 8641 invoked from network); 5 May 2013 00:07:43 -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,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: Bart Schaefer Cc: zsh-workers@zsh.org Subject: Re: precmd: write error: interrupted In-Reply-To: <130428180338.ZM14577@torch.brasslantern.com> (Bart Schaefer's message of "Sun, 28 Apr 2013 18:03:38 -0700") References: <130425111646.ZM17258@torch.brasslantern.com> <130426080805.ZM18619@torch.brasslantern.com> <517C0E09.4040505@users.sourceforge.net> <130427153141.ZM20125@torch.brasslantern.com> <517D40B0.8020609@thregr.org> <130428180338.ZM14577@torch.brasslantern.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Date: Sun, 05 May 2013 02:01:33 +0200 Message-ID: <8738u2b8gy.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Df-Sender: [pbs]NDMwNDQ0 Hi Bart, Bart Schaefer wrote: [...] > Here's a stab at a more comprehensive patch. This follows the pattern of > child_block()/child_unblock() which we use elsewhere to reap children only > when safe to do so. > > I'm not 100% confident that this does the right thing for non-interactive > shells/sourcing of scripts, but I *think* the change in shingetline() > should cover those cases. I'm afraid these changes break SIGWINCH handling of child processes. If you start an editor or mail-reader or terminal-multiplexer (or whatever really), that child will not react to any terminal-resizes anymore. It took a while to find out, why this: TRAPWINCH() { print $COLUMNS $LINES; } didn't trigger in shells inside the terminal-multiplexer I use, but does trigger in a naked xterm without multiplexer. The fact that the terminal multiplexer itself didn't react to SIGWINCHes anymore steered me into zsh's direction (well, not directly but eventually). Building a version of the shell before these changes=C2=B9 makes everything work again. Sorry to be the bearer of bad news. ;) Regards, Frank =C2=B9 * cbf6f14 31357: _cp: add support for Mac OS X (5 days ago)